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: 2017 Inria
3
* SPDX-FileCopyrightText: 2017 OTAKeys
4
* SPDX-FileCopyrightText: 2018 Freie Universität Berlin
5
* SPDX-License-Identifier: LGPL-2.1-only
6
*/
7
8
#pragma once
9
23
#include "
arduino_pinmap.h
"
24
#include "
board_nucleo.h
"
25
26
#ifdef __cplusplus
27
extern
"C"
{
28
#endif
29
34
#if defined(CPU_MODEL_STM32L496ZG) || defined(CPU_MODEL_STM32L4R5ZI) || \
35
defined(CPU_MODEL_STM32L552ZE) || defined(CPU_MODEL_STM32U575ZI)
36
#define LED0_PIN_NUM 7
37
#define LED0_PORT GPIO_PORT_C
38
#define LED0_PORT_NUM PORT_C
39
#else
40
#define LED0_PIN_NUM 0
41
#define LED0_PORT GPIO_PORT_B
42
#define LED0_PORT_NUM PORT_B
43
#endif
44
45
#define LED1_PIN_NUM 7
46
#define LED1_PORT GPIO_PORT_B
47
#define LED1_PORT_NUM PORT_B
48
49
#if defined(CPU_MODEL_STM32L552ZE)
50
#define LED2_PIN_NUM 9
51
#define LED2_PORT GPIO_PORT_A
52
#define LED2_PORT_NUM PORT_A
53
#elif defined(CPU_MODEL_STM32U575ZI)
54
#define LED2_PIN_NUM 2
55
#define LED2_PORT GPIO_PORT_G
56
#define LED2_PORT_NUM PORT_G
57
#else
58
#define LED2_PIN_NUM 14
59
#define LED2_PORT GPIO_PORT_B
60
#define LED2_PORT_NUM PORT_B
61
#endif
68
#define BTN0_PIN GPIO_PIN(PORT_C, 13)
69
#define BTN0_MODE GPIO_IN_PD
72
#ifdef __cplusplus
73
}
74
#endif
75
76
#include "
stm32_leds.h
"
77
arduino_pinmap.h
Compatibility wrapper for arduino_iomap.h.
board_nucleo.h
Global common Nucleo board configuration.
stm32_leds.h
Common LED macros.
Generated on Mon Oct 20 2025 13:02:25 by
1.9.1