isr updates
This commit is contained in:
parent
0037fd9527
commit
20f6a749d1
2 changed files with 32 additions and 6 deletions
|
@ -21,7 +21,7 @@ void toggle_led(void) {
|
|||
}
|
||||
}
|
||||
|
||||
void tmr_isr(void) {
|
||||
void tmr0_isr(void) {
|
||||
|
||||
toggle_led();
|
||||
*TMR0_SCTRL = 0;
|
||||
|
@ -58,9 +58,10 @@ void main(void) {
|
|||
|
||||
led_on();
|
||||
|
||||
enable_tmr_irq();
|
||||
enable_irq(TMR);
|
||||
|
||||
while(1) {
|
||||
while(1) {
|
||||
/* sit here and let the interrupts do the work */
|
||||
continue;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue