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 <stdint.h>
22 
23 #include "cpu.h"
24 #include "periph_conf.h"
25 
26 #ifdef __cplusplus
27  extern "C" {
28 #endif
29 
33 #define XTIMER_WIDTH (16)
34 
39 #define LED0_PIN_NUM 9
40 #define LED0_PORT GPIO_PORT_A
41 #define LED0_PORT_NUM PORT_A
42 
43 #define LED1_PIN_NUM 10
44 #define LED1_PORT GPIO_PORT_A
45 #define LED1_PORT_NUM PORT_A
46 
47 #define LED2_PIN_NUM 8
48 #define LED2_PORT GPIO_PORT_A
49 #define LED2_PORT_NUM PORT_A
50 
51 #define LED3_PIN_NUM 13
52 #define LED3_PORT GPIO_PORT_A
53 #define LED3_PORT_NUM PORT_A
60 #define BUTTON1 GPIO_PIN(PORT_B,2)
67 #define CC3000_SPI SPI_DEV(0)
68 #define CC3000_CS GPIO_PIN(PORT_B,12)
69 #define CC3000_EN GPIO_PIN(PORT_B,8)
70 #define CC3000_INT GPIO_PIN(PORT_B,11)
77 #define EXTFLASH_SPI SPI_DEV(0)
78 #define EXTFLASH GPIO_PIN(PORT_B,9)
81 #ifdef __cplusplus
82 } /* end extern "C" */
83 #endif
84 
85 #include "stm32_leds.h"
86 
Peripheral MCU configuration for the Zigduino board.
Common LED macros.