stm32l0: add pwm

This commit is contained in:
Kenneth Bell
2021-05-08 15:53:17 -07:00
committed by Ron Evans
parent 2c4b507d34
commit 3145c2747e
5 changed files with 363 additions and 1 deletions
+6
View File
@@ -12,6 +12,12 @@ func CPUFrequency() uint32 {
return 32000000
}
// 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 = 32e6 // 32MHz
const APB2_TIM_FREQ = 32e6 // 32MHz
const (
PA0 = portA + 0
PA1 = portA + 1