1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-19 03:23:49 +01:00
RIOT/boards/common/nucleo/include/board_nucleo.h
2025-07-18 14:23:37 +02:00

59 lines
1.2 KiB
C

/*
* SPDX-FileCopyrightText: 2017 Freie Universität Berlin
* SPDX-License-Identifier: LGPL-2.1-only
*/
#pragma once
/**
* @defgroup boards_common_nucleo STM32 Nucleo Common
* @ingroup boards_common
* @brief Common support for all STM32 Nucleo boards
* @{
*
* @file
* @brief Global common Nucleo board configuration
*
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/
#include "cpu.h"
#include "periph_conf.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @name Xtimer configuration
* @{
*/
#if (defined(CPU_FAM_STM32F0) || defined(CPU_FAM_STM32L0)) && \
!defined(CPU_MODEL_STM32F042K6) && !defined(CPU_MODEL_STM32F031K6)
#define XTIMER_WIDTH (16)
#endif
#if defined(CPU_FAM_STM32G0) || defined(CPU_FAM_STM32C0)
#define XTIMER_WIDTH (16)
#endif
#if defined(CPU_FAM_STM32F1)
#define XTIMER_WIDTH (16)
#define XTIMER_BACKOFF (19)
#endif
#if defined(CPU_FAM_STM32L1)
#define XTIMER_BACKOFF (11)
#endif
#if defined(CPU_FAM_STM32F4) || defined(CPU_MODEL_STM32F303ZE)
#define XTIMER_BACKOFF (8)
#endif
/** @} */
#ifdef __cplusplus
}
#endif
/** @} */