From 369036760af266e551bfd1209a96386df72ae18a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Nohlg=C3=A5rd?= Date: Tue, 13 Mar 2018 14:16:38 +0100 Subject: [PATCH] cpu/mips32r2_generic: Add PERIPH_TIMER_PROVIDES_SET mips32r2_common already implements timer_set so it should not be provided by periph_common/timer to avoid multiple definition errors currently hidden by the linker. The firmware was using the one from `mips32r2_common` before (binary checked). So behaviour is identical. --- cpu/mips32r2_generic/include/periph_cpu.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cpu/mips32r2_generic/include/periph_cpu.h b/cpu/mips32r2_generic/include/periph_cpu.h index d952154e75..ae92648eaf 100644 --- a/cpu/mips32r2_generic/include/periph_cpu.h +++ b/cpu/mips32r2_generic/include/periph_cpu.h @@ -24,6 +24,11 @@ extern "C" { #define PROVIDES_PM_SET_LOWEST /** @} */ +/** + * @brief Prevent shared timer functions from being used + */ +#define PERIPH_TIMER_PROVIDES_SET 1 + #ifdef __cplusplus } #endif