projects
/
my-code
/
arm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
notebook -> pc ;)
[my-code/arm.git]
/
betty
/
interrupts.c
diff --git
a/betty/interrupts.c
b/betty/interrupts.c
index
ed33c15
..
24159c0
100644
(file)
--- a/
betty/interrupts.c
+++ b/
betty/interrupts.c
@@
-158,11
+158,13
@@
void interrupt_tc_config(u8 tcnum,u8 mode,u8 cap,u32 psv) {
if(tcnum==0) {
T0TCR=0x03;
+ T0TC=0;
T0CTCR=mode|(cap<<2);
T0PR=psv;
}
else {
T1TCR=0x03;
+ T1TC=0;
T1CTCR=mode|(cap<<2);
T1PR=psv;
}