board.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2021 luisan00
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
17 #include "cpu.h"
18 #include "periph_conf.h"
19 
20 #ifdef __cplusplus
21 extern "C"
22 {
23 #endif
24 
29 #define LED0_PIN_NUM 6
30 #define LED0_PORT GPIO_PORT_G
31 #define LED0_PORT_NUM PORT_G
32 #define LED0_IS_INVERTED 1
34 #define LED1_PIN_NUM 4
35 #define LED1_PORT GPIO_PORT_D
36 #define LED1_PORT_NUM PORT_D
37 #define LED1_IS_INVERTED 1
39 #define LED2_PIN_NUM 5
40 #define LED2_PORT GPIO_PORT_D
41 #define LED2_PORT_NUM PORT_D
42 #define LED2_IS_INVERTED 1
44 #define LED3_PIN_NUM 3
45 #define LED3_PORT GPIO_PORT_K
46 #define LED3_PORT_NUM PORT_K
47 #define LED3_IS_INVERTED 1
54 #define BTN0_PIN GPIO_PIN(PORT_A, 0)
55 #define BTN0_MODE GPIO_IN
58 #ifdef __cplusplus
59 }
60 #endif
61 
62 #include "stm32_leds.h"
63 
Peripheral MCU configuration for the Zigduino board.
Common LED macros.