msb-430/include/board_common.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2013-2016 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 
22 #ifndef BOARD_COMMON_H
23 #define BOARD_COMMON_H
24 
25 #include "cpu.h"
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
34 #define INFOMEM (0x1000)
35 
40 #define XTIMER_WIDTH (16)
41 #define XTIMER_BACKOFF (40)
42 
48 #define LED0_PIN GPIO_PIN(4, 7)
49 
50 #define LED_OUT_REG (P5OUT)
51 #define LED0_MASK (1 << 7)
52 
53 #define LED0_ON (LED_OUT_REG &= ~LED0_MASK)
54 #define LED0_OFF (LED_OUT_REG |= LED0_MASK)
55 #define LED0_TOGGLE (LED_OUT_REG ^= LED0_MASK)
56 
58 #ifdef __cplusplus
59 }
60 #endif
61 
62 #endif /* BOARD_COMMON_H */
63