machine/stm32f4: refactor common code and add new build tag stm32f4 (#1332)

* machine/STM32F4: break out STM32F4 machine with new build tag
This commit is contained in:
ardnew
2020-09-01 04:31:41 -05:00
committed by GitHub
parent 946184b8ba
commit 7f829fe153
8 changed files with 252 additions and 175 deletions
+13
View File
@@ -4,6 +4,19 @@ package machine
// Peripheral abstraction layer for the stm32.
const (
portA Pin = iota * 16
portB
portC
portD
portE
portF
portG
portH
portI
portJ
)
type PinMode uint8
// Peripheral operations sequence: