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 
10 #pragma once
11 
25 #include "cpu.h"
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
40 #ifndef BOARD_NRF51_XTIMER_ALT
41 /* default xtimer mapping */
42 #define XTIMER_WIDTH (24)
43 #else
44 /* alternative mapping to TIMER_DEV(1) */
45 #define XTIMER_DEV TIMER_DEV(1)
46 #define XTIMER_WIDTH (16)
47 #define XTIMER_CHAN (0)
48 #endif
49 #define XTIMER_BACKOFF (40)
52 #ifdef __cplusplus
53 }
54 #endif
55