stm32: add pwm for f4 series

This commit is contained in:
Kenneth Bell
2021-05-06 20:45:11 -07:00
committed by Ron Evans
parent 422ebeeec7
commit ee167f15de
7 changed files with 689 additions and 3 deletions
+13
View File
@@ -0,0 +1,13 @@
// +build stm32f4disco
package main
import "machine"
var (
// These pins correspond to LEDs on the discovery
// board
pwm = &machine.TIM4
pinA = machine.PD12
pinB = machine.PD13
)