aboutsummaryrefslogtreecommitdiff
path: root/include/cpu
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-03-24 22:55:13 -0700
committerChristian Cunningham <cc@localhost>2022-03-24 22:55:13 -0700
commit75ca654c2a3a4cce24459a381311c259ce7ce8a3 (patch)
tree2549dd19a9bd1484f8ca48246d4bf4b40b937f42 /include/cpu
parentc5b6f1611ea1f4685ef02f65fc0362f9c22c344f (diff)
GPIO Interrupts
Diffstat (limited to 'include/cpu')
-rw-r--r--include/cpu/irq.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/cpu/irq.h b/include/cpu/irq.h
index 28e060b..e244cc9 100644
--- a/include/cpu/irq.h
+++ b/include/cpu/irq.h
@@ -6,7 +6,9 @@
#define SYS_TIMER_1_IRQ 2
#define SYS_TIMER_2_IRQ 3
#define SYS_TIMER_3_IRQ 4
-#define LOCAL_TIMER_IRQ 5
+#define GPIO_BANK_1_IRQ 5
+#define GPIO_BANK_2_IRQ 6
+#define LOCAL_TIMER_IRQ 7
#define MAX_IRQS LOCAL_TIMER_IRQ+1
struct IrqEntry {
@@ -24,6 +26,11 @@ struct SysTimerInfo {
void* arg;
};
+struct GPIOInfo {
+ unsigned long pin;
+ unsigned long priority;
+};
+
static inline void enableirq(void)
{
asm volatile("cpsie i");