aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/device
diff options
context:
space:
mode:
authorEthan Reesor <[email protected]>2020-02-18 01:09:16 -0600
committerRon Evans <[email protected]>2020-07-08 21:58:15 +0200
commit59218cd78483c1f2896b16bc4df7a11f03a2b11a (patch)
tree3497d738d786e45fbf02ce285a3ba2e1e7a5ddff /src/device
parent079a789d492431cff100824421aa276a731ac369 (diff)
downloadtinygo-59218cd78483c1f2896b16bc4df7a11f03a2b11a.tar.gz
tinygo-59218cd78483c1f2896b16bc4df7a11f03a2b11a.zip
Working on NXP/Teensy support
Diffstat (limited to 'src/device')
-rw-r--r--src/device/arm/arm.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/device/arm/arm.go b/src/device/arm/arm.go
index 45226dab4..d7ccaab7e 100644
--- a/src/device/arm/arm.go
+++ b/src/device/arm/arm.go
@@ -174,6 +174,11 @@ func EnableIRQ(irq uint32) {
NVIC.ISER[irq>>5].Set(1 << (irq & 0x1F))
}
+// Disable the given interrupt number.
+func DisableIRQ(irq uint32) {
+ NVIC.ICER[irq>>5].Set(1 << (irq & 0x1F))
+}
+
// Set the priority of the given interrupt number.
// Note that the priority is given as a 0-255 number, where some of the lower
// bits are not implemented by the hardware. For example, to set a low interrupt