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
33extern "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_NUM PORT_C
44#else
45#define LED0_PIN_NUM 0
46#define LED0_PORT_NUM PORT_B
47#endif
48
49#define LED1_PIN_NUM 7
50#define LED1_PORT_NUM PORT_B
51
52#if defined(CPU_MODEL_STM32L552ZE)
53#define LED2_PIN_NUM 9
54#define LED2_PORT_NUM PORT_A
55#elif defined(CPU_MODEL_STM32U575ZI)
56#define LED2_PIN_NUM 2
57#define LED2_PORT_NUM PORT_G
58#else
59#define LED2_PIN_NUM 14
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
78#endif /* BOARD_H */
Compatibility wrapper for arduino_iomap.h.
Global common Nucleo board configuration.
Common LED macros.