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_atsamd51.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_atsamd51.go')
-rw-r--r-- | src/machine/machine_atsamd51.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/machine/machine_atsamd51.go b/src/machine/machine_atsamd51.go index 0ce476ccc..f8b0a8650 100644 --- a/src/machine/machine_atsamd51.go +++ b/src/machine/machine_atsamd51.go @@ -20,8 +20,6 @@ func CPUFrequency() uint32 { return 120000000 } -type PinMode uint8 - const ( PinAnalog PinMode = 1 PinSERCOM PinMode = 2 |