board_common.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2017 Freie Universität Berlin
3  * 2018 Inria
4  *
5  * This file is subject to the terms and conditions of the GNU Lesser
6  * General Public License v2.1. See the file LICENSE in the top level
7  * directory for more details.
8  */
9 
23 #ifndef BOARD_COMMON_H
24 #define BOARD_COMMON_H
25 
26 #include "cpu.h"
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
41 #ifndef BOARD_NRF51_XTIMER_ALT
42 /* default xtimer mapping */
43 #define XTIMER_WIDTH (24)
44 #else
45 /* alternative mapping to TIMER_DEV(1) */
46 #define XTIMER_DEV TIMER_DEV(1)
47 #define XTIMER_WIDTH (16)
48 #define XTIMER_CHAN (0)
49 #endif
50 #define XTIMER_BACKOFF (40)
53 #ifdef __cplusplus
54 }
55 #endif
56 
57 #endif /* BOARD_COMMON_H */