Loading...
Searching...
No Matches
board_nucleo.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2017 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
9#pragma once
10
22
23#include "cpu.h"
24#include "periph_conf.h"
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
34#if (defined(CPU_FAM_STM32F0) || defined(CPU_FAM_STM32L0)) && \
35 !defined(CPU_MODEL_STM32F042K6) && !defined(CPU_MODEL_STM32F031K6)
36#define XTIMER_WIDTH (16)
37#endif
38
39#if defined(CPU_FAM_STM32G0) || defined(CPU_FAM_STM32C0)
40#define XTIMER_WIDTH (16)
41#endif
42
43#if defined(CPU_FAM_STM32F1)
44#define XTIMER_WIDTH (16)
45#define XTIMER_BACKOFF (19)
46#endif
47
48#if defined(CPU_FAM_STM32L1)
49#define XTIMER_BACKOFF (11)
50#endif
51
52#if defined(CPU_FAM_STM32F4) || defined(CPU_MODEL_STM32F303ZE)
53#define XTIMER_BACKOFF (8)
54#endif
56
57#ifdef __cplusplus
58}
59#endif
60