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 
18 #include "cpu.h"
19 #include "periph_conf.h"
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
29 #define LED0_PIN_NUM 13
30 #define LED0_PORT GPIO_PORT_G
31 #define LED0_PORT_NUM PORT_G
32 
33 #define LED1_PIN_NUM 14
34 #define LED1_PORT GPIO_PORT_G
35 #define LED1_PORT_NUM PORT_G
42 #define BTN0_PIN GPIO_PIN(PORT_A, 0)
43 #define BTN0_MODE GPIO_IN
50 #define L3GXXXX_SPI_DEV SPI_DEV(0)
51 #define L3GXXXX_SPI_CS GPIO_PIN(PORT_C, 1)
52 #define L3GXXXX_INT1_PIN GPIO_PIN(PORT_A, 1)
53 #define L3GXXXX_INT2_PIN GPIO_PIN(PORT_A, 2)
60 #define STMPE811_PARAM_XYCONV (STMPE811_MIRROR_Y | STMPE811_SWAP_XY)
63 #ifdef __cplusplus
64 }
65 #endif
66 
67 #include "stm32_leds.h"
68 
Peripheral MCU configuration for the Zigduino board.
Common LED macros.