chiark
/
gitweb
/
~ijackson
/
trains.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b876987
)
actually enable tick interrupt(!)
author
ian
<ian>
Fri, 30 Dec 2005 02:59:21 +0000
(
02:59
+0000)
committer
ian
<ian>
Fri, 30 Dec 2005 02:59:21 +0000
(
02:59
+0000)
detpic/tick.asm
patch
|
blob
|
history
diff --git
a/detpic/tick.asm
b/detpic/tick.asm
index 56ff9ae18d5400f4991925145021ac87c5f389bf..a70ebc6aca124c666b115853f5e073ff315f503b 100644
(file)
--- a/
detpic/tick.asm
+++ b/
detpic/tick.asm
@@
-19,7
+19,7
@@
tick_init @
mov_wf PR2
bc_f PIR1, TMR2IF ; clear any previous interrupt
bc_f IPR1, TMR2IP ; low priority
- bs_f
IPR
1, TMR2IE ; enable interrupts
+ bs_f
PIE
1, TMR2IE ; enable interrupts
bs_f T2CON, TMR2ON ; enable timer
mov_lw tickdiv
mov_wf tickdiv_count