clean up
This commit is contained in:
parent
a75f1c4437
commit
e340e234c6
6 changed files with 31 additions and 58 deletions
|
@ -1,4 +1,4 @@
|
|||
#include "embedded_types.h"
|
||||
#include "types.h"
|
||||
#include "isr.h"
|
||||
|
||||
#define reg32(x) (*(volatile uint32_t *)(x))
|
||||
|
@ -7,7 +7,7 @@ __attribute__ ((section (".irq")))
|
|||
__attribute__ ((interrupt("IRQ")))
|
||||
void irq(void)
|
||||
{
|
||||
if(tmr_isr != NULL) {
|
||||
if(tmr_isr != 0) {
|
||||
tmr_isr();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue