maixbit: add GPIOHS pin interrupt support

This commit is contained in:
Yannis Huber
2020-06-25 14:37:12 +02:00
committed by Ron Evans
parent 53c83fa445
commit 5446c6927e
2 changed files with 183 additions and 2 deletions
+5
View File
@@ -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
}