VICDefVectAddr=0;
}
-void interrupt_set_default_callback(void *callback) {
+void interrupt_set_default_callback(u32 callback_addr) {
- VICDefVectAddr=(u32)callback;
+ VICDefVectAddr=callback_addr;
}
void interrupt_set_soft_callback(void (*callback)(void)) {
/* function prototypes */
-void interrupt_set_default_callback(t_interrupt *ir,void *callback);
-
-void interrupt_ext_ir_conf(u8 pin,u8 mode,u8 polar,
- void (*ext_ir_callback)(t_interrupt *ir));
+void interrupt_init(void);
+void interrupt_set_default_callback(u32 callback_addr);
+void interrupt_set_soft_callback(void (*callback)(void));
+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_handler_reset(void);
void interrupt_handler_undef_instruction(void);