The friendly Operating System for the Internet of Things
avsextrem/include/board.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2013 Zakaria Kasmi <zkasmi@inf.fu-berlin.de>
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 
10 
25 #ifndef BOARDCONF_H
26 #define BOARDCONF_H
27 #include "bitarithm.h"
28 #include "msba2_common.h"
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
38 #define LED0_PIN GPIO_PIN(2, 25)
39 #define LED1_PIN GPIO_PIN(2, 26)
40 
41 #define LED0_MASK (BIT25)
42 #define LED1_MASK (BIT26)
43 
44 #define LED0_OFF (FIO3SET = LED0_MASK)
45 #define LED0_ON (FIO3CLR = LED0_MASK)
46 #define LED0_TOGGLE (FIO3PIN ^= LED0_MASK)
47 
48 #define LED1_OFF (FIO3SET = LED1_MASK)
49 #define LED1_ON (FIO3CLR = LED1_MASK)
50 #define LED1_TOGGLE (FIO3PIN ^= LED1_MASK)
51 
56 void init_clks1(void);
57 
58 #ifdef __cplusplus
59 }
60 #endif
61 
63 #endif /* BOARDCONF_H */
MSB-A2 Common Board Definitions.
Helper functions for bit arithmetic.
void init_clks1(void)
Initialize the board's clock system.