board_nucleo.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2017 Freie Universität Berlin
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
20 #include "cpu.h"
21 #include "periph_conf.h"
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
31 #if (defined(CPU_FAM_STM32F0) || defined(CPU_FAM_STM32L0)) && \
32  !defined(CPU_MODEL_STM32F042K6) && !defined(CPU_MODEL_STM32F031K6)
33 #define XTIMER_WIDTH (16)
34 #endif
35 
36 #if defined(CPU_FAM_STM32G0) || defined(CPU_FAM_STM32C0)
37 #define XTIMER_WIDTH (16)
38 #endif
39 
40 #if defined(CPU_FAM_STM32F1)
41 #define XTIMER_WIDTH (16)
42 #define XTIMER_BACKOFF (19)
43 #endif
44 
45 #if defined(CPU_FAM_STM32L1)
46 #define XTIMER_BACKOFF (11)
47 #endif
48 
49 #if defined(CPU_FAM_STM32F4) || defined(CPU_MODEL_STM32F303ZE)
50 #define XTIMER_BACKOFF (8)
51 #endif
54 #ifdef __cplusplus
55 }
56 #endif
57