msba2/include/board.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2013 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 "msba2_common.h"
25 #include "bitarithm.h"
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
35 #define LED0_PIN GPIO_PIN(2, 25)
36 #define LED1_PIN GPIO_PIN(2, 26)
37 
38 #define LED0_MASK (BIT25)
39 #define LED1_MASK (BIT26)
40 
41 #define LED0_OFF (FIO3SET = LED0_MASK)
42 #define LED0_ON (FIO3CLR = LED0_MASK)
43 #define LED0_TOGGLE (FIO3PIN ^= LED0_MASK)
44 
45 #define LED1_OFF (FIO3SET = LED1_MASK)
46 #define LED1_ON (FIO3CLR = LED1_MASK)
47 #define LED1_TOGGLE (FIO3PIN ^= LED1_MASK)
48 
54 #define XTIMER_OVERHEAD 7
55 #define XTIMER_SHOOT_EARLY 3
56 
61 void init_clks1(void);
62 
63 #ifdef __cplusplus
64 }
65 #endif
66 
67 #endif /* BOARD_H */
68 
MSB-A2 Common Board Definitions.
Helper functions for bit arithmetic.
void init_clks1(void)
initialize the board's clock system