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 
9 #pragma once
10 
24 #include "cpu.h"
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
34 #define XTIMER_WIDTH (16)
35 #define XTIMER_BACKOFF (40)
42 #define LED0_PIN GPIO_PIN(4, 7)
43 
44 #define LED_OUT_REG (P5OUT)
45 #define LED0_MASK (1 << 7)
46 
47 #define LED0_ON (LED_OUT_REG &= ~LED0_MASK)
48 #define LED0_OFF (LED_OUT_REG |= LED0_MASK)
49 #define LED0_TOGGLE (LED_OUT_REG ^= LED0_MASK)
52 #ifdef __cplusplus
53 }
54 #endif
55