slwstk6220a/include/board.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 Freie Universit├Ąt Berlin
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 
21 #ifndef BOARD_H
22 #define BOARD_H
23 
24 #include "cpu.h"
25 #include "periph_conf.h"
26 #include "periph_cpu.h"
27 #include "periph/gpio.h"
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
36 #define HW_TIMER TIMER_DEV(0)
37 
42 #define SI7021_I2C (I2C_0)
43 #define SI7021_ADDR (0) /* TODO */
44 #define SI7021_EN_PIN GPIO_PIN(PF,8)
45 
50 #define BC_PIN GPIO_PIN(PA,12)
51 
56 #define PB0_PIN GPIO_PIN(PE,3)
57 #define PB1_PIN GPIO_PIN(PE,2)
58 
64 #define LED0_PIN GPIO_PIN(PF, 6)
65 #define LED1_PIN GPIO_PIN(PF, 7)
66 
67 #define LED0_ON gpio_set(LED0_PIN)
68 #define LED0_OFF gpio_clear(LED0_PIN)
69 #define LED0_TOGGLE gpio_toggle(LED0_PIN)
70 
71 #define LED1_ON gpio_set(LED1_PIN)
72 #define LED1_OFF gpio_clear(LED1_PIN)
73 #define LED1_TOGGLE gpio_toggle(LED1_PIN)
74 
79 void board_init(void);
80 
81 #ifdef __cplusplus
82 }
83 #endif
84 
85 #endif /* BOARD_H */
86 
Low-level GPIO peripheral driver interface definitions.
void board_init(void)
Initialize board specific hardware, including clock, LEDs and std-IO.
Configuration of CPU peripherals for the WSTK6220 board.