board.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2014 Freie Universität Berlin
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser General
5  * Public License v2.1. See the file LICENSE in the top level directory for more
6  * details.
7  */
8 
9 #pragma once
10 
21 #include "cpu.h"
22 #include "periph_conf.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
32 #define CC110X_PARAM_SPI SPI_DEV(0)
33 #define CC110X_PARAM_CS GPIO_PIN(PORT_B, 12)
34 #define CC110X_PARAM_GDO0 GPIO_PIN(PORT_C, 4)
35 #define CC110X_PARAM_GDO2 GPIO_PIN(PORT_C, 5)
36 #define CC110X_PARAM_SPI_CLOCK SPI_CLK_1MHZ
43 #define MPU9X50_PARAM_COMP_ADDR (0x0E)
50 #define LED0_PIN_NUM 8
51 #define LED0_PORT GPIO_PORT_B
52 #define LED0_PORT_NUM PORT_B
54 #define LED1_PIN_NUM 14
55 #define LED1_PORT GPIO_PORT_B
56 #define LED1_PORT_NUM PORT_B
58 #define LED2_PIN_NUM 15
59 #define LED2_PORT GPIO_PORT_B
60 #define LED2_PORT_NUM PORT_B
67 #define BUTTON0_PIN GPIO_PIN(PORT_B, 13)
68 #define BUTTON1_PIN GPIO_PIN(PORT_A, 0)
71 #ifdef __cplusplus
72 }
73 #endif
74 
75 #include "stm32_leds.h"
76 
Peripheral MCU configuration for the Zigduino board.
Common LED macros.