board_common.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2013-2016 Freie Universität Berlin
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
21 #include "cpu.h"
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
31 #define XTIMER_WIDTH (16)
32 #define XTIMER_BACKOFF (40)
39 #define LED0_PIN GPIO_PIN(4, 7)
40 
41 #define LED_OUT_REG (P5OUT)
42 #define LED0_MASK (1 << 7)
43 
44 #define LED0_ON (LED_OUT_REG &= ~LED0_MASK)
45 #define LED0_OFF (LED_OUT_REG |= LED0_MASK)
46 #define LED0_TOGGLE (LED_OUT_REG ^= LED0_MASK)
49 #ifdef __cplusplus
50 }
51 #endif
52