projects
/
my-code
/
arm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d01b3bb
)
well ...
author
hackbard
<hackbard@staubsauger.localdomain>
Wed, 19 Sep 2007 00:09:02 +0000
(
02:09
+0200)
committer
hackbard
<hackbard@staubsauger.localdomain>
Wed, 19 Sep 2007 00:09:02 +0000
(
02:09
+0200)
betty/interrupts.c
patch
|
blob
|
history
diff --git
a/betty/interrupts.c
b/betty/interrupts.c
index
41945cf
..
5327588
100644
(file)
--- a/
betty/interrupts.c
+++ b/
betty/interrupts.c
@@
-19,23
+19,25
@@
void interrupt_set_default_callback(void *callback) {
void interrupt_clear(u8 src_number) {
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 */
/* check whether this ir source is allready assigned */
- if(VIC
SoftInt
&(1<<src_number))
+ if(VIC
IntEnable
&(1<<src_number))
return INTERRUPT_EINUSE;
return INTERRUPT_EINUSE;
-
+
/* force interrupt */
/* 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:
switch(mode) {
case INTERRUPT_FIQ:
VICIntSelect|=(1<<src_number);
break;
case INTERRUPT_VIRQ:
+
case INTERRUPT_IRQ:
case default:
}
case INTERRUPT_IRQ:
case default:
}