]> hackdaworld.org Git - my-code/arm.git/commitdiff
well ...
authorhackbard <hackbard@staubsauger.localdomain>
Wed, 19 Sep 2007 00:09:02 +0000 (02:09 +0200)
committerhackbard <hackbard@staubsauger.localdomain>
Wed, 19 Sep 2007 00:09:02 +0000 (02:09 +0200)
betty/interrupts.c

index 41945cf30b417bf12ea2f43de0e7c7001bcc8bcb..5327588fb12be0df7822d7e250f520c33d70a7bd 100644 (file)
@@ -19,23 +19,25 @@ void interrupt_set_default_callback(void *callback) {
 
 void interrupt_clear(u8 src_number) {
 
+       VICIntEnClear=(1<<src_number);
+
 }
 
-int interrupt_set(u8 src_number,u8 mode,u8 priority,void *callback) {
+int interrupt_enable(u8 src_number,u8 mode,u8 priority,void *callback) {
 
        /* check whether this ir source is allready assigned */
-       if(VICSoftInt&(1<<src_number))
+       if(VICIntEnable&(1<<src_number))
                return INTERRUPT_EINUSE;
-       
+
        /* force interrupt */
-       VICSoftInt|=(1<<src_number);
-       VICIntEnable|=(1<<src_number);
+       VICIntEnable=(1<<src_number);
 
        switch(mode) {
                case INTERRUPT_FIQ:
                        VICIntSelect|=(1<<src_number);
                        break;
                case INTERRUPT_VIRQ:
+                       
                case INTERRUPT_IRQ:
                case default:
        }