board.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2020 iosabi
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
18 #include "cpu.h"
19 #include "periph_conf.h"
20 #include "periph_cpu.h"
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
30 #define LED_RED_PIN GPIO_PIN(PORT_A, 31)
31 #define LED_GREEN_PIN GPIO_PIN(PORT_A, 25)
32 #define LED_BLUE_PIN GPIO_PIN(PORT_A, 13)
39 #define BTN1_PIN GPIO_PIN(PORT_A, 24)
40 #define BTN1_MODE GPIO_IN_PU
41 #define BTN2_PIN GPIO_PIN(PORT_A, 19)
42 #define BTN2_MODE GPIO_IN_PU
52 #define MMA8X5X_PARAM_I2C I2C_DEV(0)
53 #define MMA8X5X_PARAM_ADDR 0x1D
54 #define MMA8X5X_PARAM_TYPE (MMA8X5X_TYPE_MMA8652)
61 #define MTD_0 mtd_dev_get(0)
64 #ifdef __cplusplus
65 }
66 #endif
67 
Peripheral MCU configuration for the Zigduino board.