diff options
author | Karl Palsson <karlp@etactica.com> | 2021-09-16 13:19:22 +0200 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2021-09-16 20:29:55 +0200 |
commit | 0a520884a475c99c61cd891f10189b5222aeb1a5 (patch) | |
tree | 6881bb78dbb6c6742d1df7e000640f4f14bd3ac8 | |
parent | 41d7823059a9e81a8cf6ec7ed65eba6959b39ee4 (diff) |
timer: add extra registers found on some newer parts
Compatible with existing parts, these are extended option and input
selection registers at the end. Found on some Gx, Ux and Wx parts so
far.
Signed-off-by: Karl Palsson <karlp@etactica.com>
-rw-r--r-- | timer/stm32_timer.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/timer/stm32_timer.h b/timer/stm32_timer.h index cbc966d..97436e6 100644 --- a/timer/stm32_timer.h +++ b/timer/stm32_timer.h @@ -23,6 +23,12 @@ struct STM32_TIMER_reg_v1_t { volatile uint32_t BDTR; volatile uint32_t DCR; volatile uint32_t DMAR; + // Many of the following are only on "new" parts like G/U/W + volatile uint32_t OR1; + volatile uint32_t _reserved1[4]; + volatile uint32_t AF1; + volatile uint32_t _reserved2; + volatile uint32_t TISEL; }; template <typename T> |