stm32l5: add pwm

This commit is contained in:
Kenneth Bell
2021-05-08 09:39:29 -07:00
committed by Ron Evans
parent ee167f15de
commit 2c4b507d34
5 changed files with 259 additions and 16 deletions
+6
View File
@@ -12,6 +12,12 @@ func CPUFrequency() uint32 {
return 110000000
}
// Internal use: configured speed of the APB1 and APB2 timers, this should be kept
// in sync with any changes to runtime package which configures the oscillators
// and clock frequencies
const APB1_TIM_FREQ = 110e6 // 110MHz
const APB2_TIM_FREQ = 110e6 // 110MHz
//---------- UART related code
// Configure the UART.