From 28ef4344180ddaded1142577dc5214b0f9d18f0a Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Fri, 28 Jan 2022 11:35:29 +0000 Subject: timer: add LPTIM definitions Add them to the stm32wb platform as well. Signed-off-by: Karl Palsson --- timer/stm32_timer.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'timer/stm32_timer.h') diff --git a/timer/stm32_timer.h b/timer/stm32_timer.h index 97436e6..f55b09c 100644 --- a/timer/stm32_timer.h +++ b/timer/stm32_timer.h @@ -31,6 +31,18 @@ struct STM32_TIMER_reg_v1_t { volatile uint32_t TISEL; }; +struct STM32_TIMER_reg_lpv1_t { + volatile uint32_t ISR; + volatile uint32_t ICR; + volatile uint32_t IER; + volatile uint32_t CFGR; + volatile uint32_t CR; + volatile uint32_t CMP; + volatile uint32_t ARR; + volatile uint32_t CNT; + volatile uint32_t OR; +}; + template class STM32_TIMER_t : public mmio_ptr { public: -- cgit v1.2.3