Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
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
35
#define XTIMER_WIDTH (16)
36
#define XTIMER_BACKOFF (40)
43
#define LED0_PIN GPIO_PIN(4, 7)
44
45
#define LED_OUT_REG (P5OUT)
46
#define LED0_MASK (1 << 7)
47
48
#define LED0_ON (LED_OUT_REG &= ~LED0_MASK)
49
#define LED0_OFF (LED_OUT_REG |= LED0_MASK)
50
#define LED0_TOGGLE (LED_OUT_REG ^= LED0_MASK)
53
#ifdef __cplusplus
54
}
55
#endif
56
57
#endif
/* BOARD_COMMON_H */
Generated on Sat Dec 21 2024 20:58:01 by
1.9.8