diff --git a/cpu/stm32/include/periph/wb/periph_cpu.h b/cpu/stm32/include/periph/wb/periph_cpu.h deleted file mode 100644 index 0683de290c..0000000000 --- a/cpu/stm32/include/periph/wb/periph_cpu.h +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2019 Inria - * - * This file is subject to the terms and conditions of the GNU Lesser - * General Public License v2.1. See the file LICENSE in the top level - * directory for more details. - */ - -/** - * @ingroup cpu_stm32 - * @{ - * - * @file - * @brief STM32WB CPU specific definitions for internal peripheral handling - * - * @author Francisco Molina - * - */ - -#ifndef PERIPH_WB_PERIPH_CPU_H -#define PERIPH_WB_PERIPH_CPU_H - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * @brief Starting address of the CPU ID - */ -#define CPUID_ADDR (0x1fff7580) - -#ifdef __cplusplus -} -#endif - -#endif /* PERIPH_WB_PERIPH_CPU_H */ -/** @} */ diff --git a/cpu/stm32/include/periph_cpu.h b/cpu/stm32/include/periph_cpu.h index e447dca8bc..c699409077 100644 --- a/cpu/stm32/include/periph_cpu.h +++ b/cpu/stm32/include/periph_cpu.h @@ -41,10 +41,6 @@ #include "periph/l1/periph_cpu.h" #elif defined(CPU_FAM_STM32L4) #include "periph/l4/periph_cpu.h" -#elif defined(CPU_FAM_STM32WB) -#include "periph/wb/periph_cpu.h" -#else -#error Unsupported STM32 CPU family #endif #ifdef __cplusplus @@ -74,6 +70,13 @@ extern "C" { */ #define CPUID_LEN (12U) +/** + * @brief Starting address of the CPU ID + */ +#ifndef CPUID_ADDR +#define CPUID_ADDR (UID_BASE) +#endif + /** * @brief We provide our own pm_off() function for all STM32-based CPUs */