diff options
author | Kenneth Bell <[email protected]> | 2020-12-24 08:11:15 -0800 |
---|---|---|
committer | deadprogram <[email protected]> | 2021-02-16 12:48:52 +0100 |
commit | fcdaa83368f80536c3e5874e6449971cfc2ee0d6 (patch) | |
tree | 47f7f2b3104b944ddab0b83bfb68f3fdbc9cb74a /src/machine/machine_stm32l5.go | |
parent | 289e1aa197d638b3a7a1c9419cf56fb3aa66762b (diff) | |
download | tinygo-fcdaa83368f80536c3e5874e6449971cfc2ee0d6.tar.gz tinygo-fcdaa83368f80536c3e5874e6449971cfc2ee0d6.zip |
stm32-l5: corrected alt function and other review comments
Diffstat (limited to 'src/machine/machine_stm32l5.go')
-rw-r--r-- | src/machine/machine_stm32l5.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/machine/machine_stm32l5.go b/src/machine/machine_stm32l5.go index 185bdfb73..95defa9c5 100644 --- a/src/machine/machine_stm32l5.go +++ b/src/machine/machine_stm32l5.go @@ -219,7 +219,6 @@ func enableAltFuncClock(bus unsafe.Pointer) { stm32.RCC.APB1ENR1.SetBits(stm32.RCC_APB1ENR1_TIM3EN) case unsafe.Pointer(stm32.TIM2): // TIM2 clock enable stm32.RCC.APB1ENR1.SetBits(stm32.RCC_APB1ENR1_TIM2EN) - case unsafe.Pointer(stm32.UCPD1): // UCPD1 clock enable stm32.RCC.APB1ENR2.SetBits(stm32.RCC_APB1ENR2_UCPD1EN) case unsafe.Pointer(stm32.FDCAN1): // FDCAN1 clock enable @@ -232,7 +231,6 @@ func enableAltFuncClock(bus unsafe.Pointer) { stm32.RCC.APB1ENR2.SetBits(stm32.RCC_APB1ENR2_I2C4EN) case unsafe.Pointer(stm32.LPUART1): // LPUART1 clock enable stm32.RCC.APB1ENR2.SetBits(stm32.RCC_APB1ENR2_LPUART1EN) - case unsafe.Pointer(stm32.TIM17): // TIM17 clock enable stm32.RCC.APB2ENR.SetBits(stm32.RCC_APB2ENR_TIM17EN) case unsafe.Pointer(stm32.TIM16): // TIM16 clock enable |