From: hackbard Date: Tue, 18 Sep 2007 15:47:58 +0000 (+0200) Subject: some interrupt stuff, now basketball ... X-Git-Url: https://hackdaworld.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d01b3bb1e7565638e2275e6081dcb106c1fcdb41;p=my-code%2Farm.git some interrupt stuff, now basketball ... --- diff --git a/betty/interrupts.c b/betty/interrupts.c index 61cf1af..41945cf 100644 --- a/betty/interrupts.c +++ b/betty/interrupts.c @@ -11,12 +11,37 @@ * functions */ -void interrupt_set_default_callback(t_interrupt *ir,void *callback) { +void interrupt_set_default_callback(void *callback) { - ir->default_callback=callback; + VICDefVectAddr=(u32)callback; + } +void interrupt_clear(u8 src_number) { +} + +int interrupt_set(u8 src_number,u8 mode,u8 priority,void *callback) { + + /* check whether this ir source is allready assigned */ + if(VICSoftInt&(1<