diff options
author | ardnew <[email protected]> | 2020-09-01 04:31:41 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2020-09-01 11:31:41 +0200 |
commit | 7f829fe1538671800674d90a5ef47eb6f7a81cd7 (patch) | |
tree | 09f3379901a0f42cb5ac732cb5f2a3107da21205 /src/machine/machine_stm32.go | |
parent | 946184b8bac112b5a574a86af4425f84dc55e21e (diff) | |
download | tinygo-7f829fe1538671800674d90a5ef47eb6f7a81cd7.tar.gz tinygo-7f829fe1538671800674d90a5ef47eb6f7a81cd7.zip |
machine/stm32f4: refactor common code and add new build tag stm32f4 (#1332)
* machine/STM32F4: break out STM32F4 machine with new build tag
Diffstat (limited to 'src/machine/machine_stm32.go')
-rw-r--r-- | src/machine/machine_stm32.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/machine/machine_stm32.go b/src/machine/machine_stm32.go index b1ee97aab..8ef5fed7e 100644 --- a/src/machine/machine_stm32.go +++ b/src/machine/machine_stm32.go @@ -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: |