diff options
author | Ethan Reesor <[email protected]> | 2020-02-18 01:09:16 -0600 |
---|---|---|
committer | Ron Evans <[email protected]> | 2020-07-08 21:58:15 +0200 |
commit | 59218cd78483c1f2896b16bc4df7a11f03a2b11a (patch) | |
tree | 3497d738d786e45fbf02ce285a3ba2e1e7a5ddff /src/device | |
parent | 079a789d492431cff100824421aa276a731ac369 (diff) | |
download | tinygo-59218cd78483c1f2896b16bc4df7a11f03a2b11a.tar.gz tinygo-59218cd78483c1f2896b16bc4df7a11f03a2b11a.zip |
Working on NXP/Teensy support
Diffstat (limited to 'src/device')
-rw-r--r-- | src/device/arm/arm.go | 5 |
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 |