board.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2020 iosabi
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
9 #pragma once
10 
21 #include "cpu.h"
22 #include "periph_conf.h"
23 #include "periph_cpu.h"
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
33 #define LED_RED_PIN GPIO_PIN(PORT_A, 31)
34 #define LED_GREEN_PIN GPIO_PIN(PORT_A, 25)
35 #define LED_BLUE_PIN GPIO_PIN(PORT_A, 13)
42 #define BTN1_PIN GPIO_PIN(PORT_A, 24)
43 #define BTN1_MODE GPIO_IN_PU
44 #define BTN2_PIN GPIO_PIN(PORT_A, 19)
45 #define BTN2_MODE GPIO_IN_PU
55 #define MMA8X5X_PARAM_I2C I2C_DEV(0)
56 #define MMA8X5X_PARAM_ADDR 0x1D
57 #define MMA8X5X_PARAM_TYPE (MMA8X5X_TYPE_MMA8652)
64 #define MTD_0 mtd_dev_get(0)
67 #ifdef __cplusplus
68 }
69 #endif
70 
Peripheral MCU configuration for the Zigduino board.