Content-Length: 363909 | pFad | http://github.com/stm32-rs/stm32-rs/pull/705/files/0dfa9221436ad8865f68e31718a2b46bad3f4d2b

FA Added CH2 on TIM15 for STM32L4 by korken89 · Pull Request #705 · stm32-rs/stm32-rs · GitHub
Skip to content

Added CH2 on TIM15 for STM32L4 #705

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 1 commit into from
Jul 3, 2022
Merged
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ Family-specific:
* F4:
* Fix incorrect bit position for Ethernet MMCTIMR TGFM (#689)

* L4:
* Added missing channel 2 on TIM15

* F7:
* Add SDMMC2EN and SDMMC2RST to F765, F7x7, F7x9 (#662)
* Fix incorrect bit position for Ethernet MMCTIMR TGFM (#689)
Expand Down
67 changes: 67 additions & 0 deletions devices/common_patches/l4_tim15_ch2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@

# TIM15 channel 2 for STM32L4x
"TIM15":
CCER:
_add:
CC2E:
description: Capture/Compare 2 output enable
bitWidth: 1
bitOffset: 4
CC2P:
description: Capture/Compare 2 output polarity
bitWidth: 1
bitOffset: 5
CC2NP:
description: Capture/Compare 2 complementary output polarity
bitWidth: 1
bitOffset: 7

CCMR1_Input:
_add:
CC2S:
description: Capture/Compare 2 selection
bitWidth: 2
bitOffset: 8
IC2PSC:
description: Input capture 2 prescaler
bitWidth: 2
bitOffset: 10
IC2F:
description: Input capture 2 filter
bitWidth: 4
bitOffset: 12

CCMR1_Output:
_add:
CC2S:
description: Capture/Compare 2 selection
bitWidth: 2
bitOffset: 8
OC2FE:
description: Output Compare 2 fast enable
bitWidth: 1
bitOffset: 10
OC2PE:
description: Capture/Compare 2 selection
bitWidth: 1
bitOffset: 11
OC2M:
description: Output Compare 2 mode
bitWidth: 3
bitOffset: 12
OC2M_3:
description: Output Compare 2 mode - bit 3
bitWidth: 1
bitOffset: 24

_add:
CCR2:
description: Channel 2 capture/compare register
addressOffset: 0x38
fields:
CCR2:
description: Capture/Compare 2 value
access: read-write
bitOffset: 0
bitWidth: 16

1 change: 1 addition & 0 deletions devices/stm32l4x1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,5 @@ _include:
- ./common_patches/l4_adc_sqr1.yaml
- ./common_patches/l4_spi.yaml
- ./common_patches/l4_gpio_brr.yaml
- ./common_patches/l4_tim15_ch2.yaml
- ../peripherals/spi/spi_l4.yaml
1 change: 1 addition & 0 deletions devices/stm32l4x5.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -192,3 +192,4 @@ _include:
- ./common_patches/l4_gpio_brr.yaml
- ./common_patches/l4_dbg_apb_fzr_rename.yaml
- ../peripherals/spi/spi_l4.yaml
- ./common_patches/l4_tim15_ch2.yaml








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/stm32-rs/stm32-rs/pull/705/files/0dfa9221436ad8865f68e31718a2b46bad3f4d2b

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy