board.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2017 OTA keys S.A.
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
19 #include "cpu.h"
20 #include "periph_conf.h"
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
30 #define LED0_PIN_NUM 13
31 #define LED0_PORT GPIO_PORT_J
32 #define LED0_PORT_NUM PORT_J
33 
34 #define LED1_PIN_NUM 5
35 #define LED1_PORT GPIO_PORT_J
36 #define LED1_PORT_NUM PORT_J
37 
38 #define LED2_PIN_NUM 12
39 #define LED2_PORT GPIO_PORT_A
40 #define LED2_PORT_NUM PORT_A
41 
42 #define LED3_PIN_NUM 4
43 #define LED3_PORT GPIO_PORT_D
44 #define LED3_PORT_NUM PORT_D
51 #define BTN0_PIN GPIO_PIN(PORT_A, 0)
52 #define BTN0_MODE GPIO_IN
55 #ifdef __cplusplus
56 }
57 #endif
58 
59 #include "stm32_leds.h"
60 
Peripheral MCU configuration for the Zigduino board.
Common LED macros.