Skip to content

stm32wb: Updates for ADC, TIM16, TIM17 #625

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 29, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
125 changes: 85 additions & 40 deletions devices/stm32wb55.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,18 @@ EXTI:
C2IMR2:
_split: [IM]

HSEM:
_modify:
C1IER0:
name: C1IER
C2IER0:
name: C2IER

IPCC:
_modify:
C1TO2SR:
name: C1TOC2SR

SYSCFG:
_modify:
IMR1:
Expand All @@ -91,6 +103,15 @@ SYSCFG:
addressOffset: 0x110

TIM16:
_add:
TISEL:
addressOffset: 0x68
description: Input Selection

_modify:
AF1:
description: TIM16 Alternate function

CR1:
_add:
CEN:
Expand Down Expand Up @@ -130,6 +151,48 @@ TIM16:
- BKINE
- BKINP

TIM17:
_add:
TISEL:
addressOffset: 0x68
description: Input Selection

_modify:
DIER:
addressOffset: 0xc
SR:
addressOffset: 0x10
EGR:
addressOffset: 0x14
CCMR1_Output:
addressOffset: 0x18
CCER:
addressOffset: 0x20
CNT:
addressOffset: 0x24
PSC:
addressOffset: 0x28
ARR:
addressOffset: 0x2c
RCR:
addressOffset: 0x30
CCR1:
addressOffset: 0x34
BDTR:
addressOffset: 0x44
DCR:
addressOffset: 0x48
DMAR:
addressOffset: 0x4c
OR1:
addressOffset: 0x50
description: TIM17 option register 1
AF1:
addressOffset: 0x60
description: TIM17 Alternate function


TIM1[67]:
DIER:
_add:
UIE:
Expand Down Expand Up @@ -165,53 +228,34 @@ TIM16:
- BKINE
- BKINP

HSEM:
_modify:
C1IER0:
name: C1IER
C2IER0:
name: C2IER
SR:
_delete:
- TIF

IPCC:
_modify:
C1TO2SR:
name: C1TOC2SR
EGR:
_delete:
- TG

TIM17:
DIER:
BDTR:
_add:
UIE:
description: Update interrupt enable.
bitOffset: 0
bitWidth: 1
CC1IE:
description: Capture/Compare 1 interrupt enable.
bitOffset: 1
bitWidth: 1
COMIE:
description: COM interrupt enable.
bitOffset: 5
bitWidth: 1
BIE:
description: Break interrupt enable.
bitOffset: 7
BKBID:
description: Break bidirectional
bitOffset: 28
bitWidth: 1
UDE:
description: Update DMA request enable.
bitOffset: 8
bitWidth: 1
CC1DE:
description: Capture/Compare 1 DMA request enable.
bitOffset: 9
BKDSRM:
description: Break disarm
bitOffset: 26
bitWidth: 1

_delete:
- BKCMP1E
- BKCMP1P
- BKCMP2E
- BKCMP2P
- BKINE
- BKINP
- BKF

TISEL:
_add:
TI1SEL:
description: Selects TI1 input
bitOffset: 0
bitWidth: 4

TIM1:
CCMR3_Output:
Expand All @@ -226,3 +270,4 @@ _include:
- ./common_patches/rtc/rtc_cr.yaml
- ../peripherals/tim/v2/ccm_common.yaml
- ./common_patches/wb_adc_common.yaml
- ./common_patches/l4_adc_smpr.yaml