X-Git-Url: https://hackdaworld.org/gitweb/?p=my-code%2Farm.git;a=blobdiff_plain;f=betty%2Finterrupts.h;fp=betty%2Finterrupts.h;h=194dd9adc2ad02d2bbd81faccfbe5f057a916434;hp=c1a4f0461cbdf259935cee6c6efb53ef2f1d2af4;hb=a409cb5b36482767f766ec9efc5dbecaa2274660;hpb=202c5cb4442b81aa5d0f7389b6dca62b2c121ac1 diff --git a/betty/interrupts.h b/betty/interrupts.h index c1a4f04..194dd9a 100644 --- a/betty/interrupts.h +++ b/betty/interrupts.h @@ -34,14 +34,21 @@ #define INTERRUPT_EINT3 17 #define INTERRUPT_ADC 18 -#define INTERRUPT_IRQ 0 -#define INTERRUPT_VIRQ 1 -#define INTERRUPT_FIQ 2 +#define INTERRUPT_MODE_IRQ 0 +#define INTERRUPT_MODE_VIRQ 1 +#define INTERRUPT_MODE_FIQ 2 #define INTERRUPT_EXT_MODE_EDGE 0 #define INTERRUPT_EXT_MODE_LEVEL 1 #define INTERRUPT_EXT_POLAR_LOW 0 #define INTERRUPT_EXT_POLAR_HIGH 1 +#define INTERRUPT_EXT_NOWAKE 0 +#define INTERRUPT_EXT_WAKEUP 1 + +#define INTERRUPT_EXT0 0 +#define INTERRUPT_EXT1 1 +#define INTERRUPT_EXT2 2 +#define INTERRUPT_EXT3 3 #define INTERRUPT_SET 0x00 #define INTERRUPT_USED 0x01 @@ -62,6 +69,7 @@ void interrupt_soft_clear(u8 src_number); void interrupt_clear(u8 src_number); void interrupt_soft_enable(u8 src_number); int interrupt_enable(u8 src_number,u8 mode,u8 priority,u32 callback_addr); +void interrupt_ext_ir_config(u8 eint,u8 wakeup,u8 mode,u8 polarity); void interrupt_handler_reset(void); void interrupt_handler_undef_instruction(void);