board.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2018 Inria
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
19 #include <stdint.h>
20 
21 #include "cpu.h"
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
31 #define LED0_PIN_NUM 2
32 #define LED0_PORT GPIO_PORT_B
33 #define LED0_PORT_NUM PORT_B
34 
35 #define LED1_PIN_NUM 8
36 #define LED1_PORT GPIO_PORT_E
37 #define LED1_PORT_NUM PORT_E
44 #define BTN0_PIN GPIO_PIN(PORT_A, 0)
45 #define BTN0_MODE GPIO_IN_PD
47 #define BTN1_PIN GPIO_PIN(PORT_A, 1)
48 #define BTN1_MODE GPIO_IN_PD
50 #define BTN2_PIN GPIO_PIN(PORT_A, 5)
51 #define BTN2_MODE GPIO_IN_PD
53 #define BTN3_PIN GPIO_PIN(PORT_A, 2)
54 #define BTN3_MODE GPIO_IN_PD
56 #define BTN4_PIN GPIO_PIN(PORT_A, 3)
57 #define BTN4_MODE GPIO_IN_PD
60 #ifdef __cplusplus
61 }
62 #endif
63 
64 #include "stm32_leds.h"
65 
Common LED macros.