mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-06 12:03:41 +00:00
maixbit: add GPIOHS pin interrupt support
This commit is contained in:
@@ -20,3 +20,8 @@ func (irq Interrupt) Enable() {
|
||||
func (irq Interrupt) SetPriority(priority uint8) {
|
||||
kendryte.PLIC.PRIORITY[irq.num].Set(uint32(priority))
|
||||
}
|
||||
|
||||
// GetNumber returns the interrupt number for this interrupt.
|
||||
func (irq Interrupt) GetNumber() int {
|
||||
return irq.num
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user