Loading...
Searching...
No Matches
board.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2019 Inria
3 * SPDX-FileCopyrightText: 2019 Freie Universität Berlin
4 * SPDX-FileCopyrightText: 2019 Kaspar Schleiser <kaspar@schleiser.de>
5 * SPDX-License-Identifier: LGPL-2.1-only
6 */
7
8#pragma once
9
19
20#include <stdint.h>
21
22#include "cpu.h"
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
32#define LED0_PIN_NUM 4
33#define LED0_PORT GPIO_PORT_B
34#define LED0_PORT_NUM PORT_B
36
41#define BTN0_PIN GPIO_PIN(PORT_B, 3)
42#define BTN0_MODE GPIO_IN_PU
44
45#ifdef __cplusplus
46}
47#endif
48
49#include "stm32_leds.h"
50
Common LED macros.