diff options
author | Ayke van Laethem <[email protected]> | 2021-05-06 12:51:06 +0200 |
---|---|---|
committer | Ron Evans <[email protected]> | 2021-05-06 13:59:12 +0200 |
commit | 2f1f8fb0755051f61e813dd832e246db99cfbd8c (patch) | |
tree | 2f9e21f736951625f4ff6ca141eedbd3ccd1bd11 /src/machine/machine_esp8266.go | |
parent | 6f61b83ad5cea4f19b82d6721e3fbb165ac44fc1 (diff) | |
download | tinygo-2f1f8fb0755051f61e813dd832e246db99cfbd8c.tar.gz tinygo-2f1f8fb0755051f61e813dd832e246db99cfbd8c.zip |
machine: move PinMode to central location
It is always implemented exactly the same way (as an uint8) so there is
no reason to implement it in each target separately.
This also makes it easier to add some documentation to it.
Diffstat (limited to 'src/machine/machine_esp8266.go')
-rw-r--r-- | src/machine/machine_esp8266.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/machine/machine_esp8266.go b/src/machine/machine_esp8266.go index 5570e7e02..19c5dd0af 100644 --- a/src/machine/machine_esp8266.go +++ b/src/machine/machine_esp8266.go @@ -11,8 +11,6 @@ func CPUFrequency() uint32 { return 80000000 // 80MHz } -type PinMode uint8 - const ( PinOutput PinMode = iota PinInput |