aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/machine/machine_nxpmk66f18.go
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2021-11-29 23:13:53 +0100
committerRon Evans <[email protected]>2021-11-30 00:47:11 +0100
commit3d73ee77d37683384277f1ea9cef5bb64d2a76f9 (patch)
tree929e3cfb0abbb12cd0759035b4c74ca488cb1da6 /src/machine/machine_nxpmk66f18.go
parent6b0f2cd6973ca629e9d5076727730837df97e8e2 (diff)
downloadtinygo-3d73ee77d37683384277f1ea9cef5bb64d2a76f9.tar.gz
tinygo-3d73ee77d37683384277f1ea9cef5bb64d2a76f9.zip
machine: add Device constant
This field contains the microcontroller name that we're compiling for, or "generic" if we're not running on a microcontroller.
Diffstat (limited to 'src/machine/machine_nxpmk66f18.go')
-rw-r--r--src/machine/machine_nxpmk66f18.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/machine/machine_nxpmk66f18.go b/src/machine/machine_nxpmk66f18.go
index 35e48e5c5..aaecee536 100644
--- a/src/machine/machine_nxpmk66f18.go
+++ b/src/machine/machine_nxpmk66f18.go
@@ -37,6 +37,8 @@ import (
"unsafe"
)
+const deviceName = nxp.Device
+
const (
PinInput PinMode = iota
PinInputPullUp