Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
board.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2017 Inria
3
* 2017 OTAKeys
4
* 2018 Freie Universität Berlin
5
*
6
* This file is subject to the terms and conditions of the GNU Lesser
7
* General Public License v2.1. See the file LICENSE in the top level
8
* directory for more details.
9
*/
10
26
#ifndef BOARD_H
27
#define BOARD_H
28
29
#include "
arduino_pinmap.h
"
30
#include "
board_nucleo.h
"
31
32
#ifdef __cplusplus
33
extern
"C"
{
34
#endif
35
40
#if defined(CPU_MODEL_STM32L496ZG) || defined(CPU_MODEL_STM32L4R5ZI) || \
41
defined(CPU_MODEL_STM32L552ZE) || defined(CPU_MODEL_STM32U575ZI)
42
#define LED0_PIN_NUM 7
43
#define LED0_PORT GPIO_PORT_C
44
#define LED0_PORT_NUM PORT_C
45
#else
46
#define LED0_PIN_NUM 0
47
#define LED0_PORT GPIO_PORT_B
48
#define LED0_PORT_NUM PORT_B
49
#endif
50
51
#define LED1_PIN_NUM 7
52
#define LED1_PORT GPIO_PORT_B
53
#define LED1_PORT_NUM PORT_B
54
55
#if defined(CPU_MODEL_STM32L552ZE)
56
#define LED2_PIN_NUM 9
57
#define LED2_PORT GPIO_PORT_A
58
#define LED2_PORT_NUM PORT_A
59
#elif defined(CPU_MODEL_STM32U575ZI)
60
#define LED2_PIN_NUM 2
61
#define LED2_PORT GPIO_PORT_G
62
#define LED2_PORT_NUM PORT_G
63
#else
64
#define LED2_PIN_NUM 14
65
#define LED2_PORT GPIO_PORT_B
66
#define LED2_PORT_NUM PORT_B
67
#endif
74
#define BTN0_PIN GPIO_PIN(PORT_C, 13)
75
#define BTN0_MODE GPIO_IN_PD
78
#ifdef __cplusplus
79
}
80
#endif
81
82
#include "
stm32_leds.h
"
83
84
#endif
/* BOARD_H */
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 Fri Dec 20 2024 20:01:55 by
1.9.8