From 18eadcfda53bea88dc263a8ef2cbb52ee1a90d18 Mon Sep 17 00:00:00 2001 From: Guillaume Revaillot Date: Fri, 5 Oct 2018 15:10:36 +0200 Subject: [PATCH] stm32: timer_common: add timer21-22, found on stm32l0 chips. stm32l0 devices have tim21 and tim22. --- include/libopencm3/stm32/common/timer_common_all.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/libopencm3/stm32/common/timer_common_all.h b/include/libopencm3/stm32/common/timer_common_all.h index e675b7dc..7327734b 100644 --- a/include/libopencm3/stm32/common/timer_common_all.h +++ b/include/libopencm3/stm32/common/timer_common_all.h @@ -81,6 +81,12 @@ specific memorymap.h header before including this header file.*/ #if defined(TIM17_BASE) # define TIM17 TIM17_BASE #endif +#if defined(TIM21_BASE) +# define TIM21 TIM21_BASE +#endif +#if defined(TIM22_BASE) +# define TIM22 TIM22_BASE +#endif /**@}*/ /* --- Timer registers ----------------------------------------------------- */