Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
board.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2019 Inria
3
* SPDX-License-Identifier: LGPL-2.1-only
4
*/
5
6
#pragma once
7
18
#include "
board_nucleo.h
"
19
20
#ifdef __cplusplus
21
extern
"C"
{
22
#endif
23
28
#define LED0_PIN_NUM 5
29
#define LED0_PORT GPIO_PORT_B
30
#define LED0_PORT_NUM PORT_B
31
32
#define LED1_PIN_NUM 0
33
#define LED1_PORT GPIO_PORT_B
34
#define LED1_PORT_NUM PORT_B
35
36
#define LED2_PIN_NUM 1
37
#define LED2_PORT GPIO_PORT_B
38
#define LED2_PORT_NUM PORT_B
45
#define BTN0_PIN GPIO_PIN(PORT_C, 4)
46
#define BTN0_MODE GPIO_IN_PU
47
#define BTN1_PIN GPIO_PIN(PORT_D, 0)
48
#define BTN1_MODE GPIO_IN_PU
49
#define BTN2_PIN GPIO_PIN(PORT_D, 1)
50
#define BTN2_MODE GPIO_IN_PU
53
#ifdef __cplusplus
54
}
55
#endif
56
57
#include "
stm32_leds.h
"
58
board_nucleo.h
Global common Nucleo board configuration.
stm32_leds.h
Common LED macros.
Generated on Sat Sep 6 2025 20:14:01 by
1.9.1