14 lines
263 B
C
14 lines
263 B
C
|
#include <stdint.h>
|
||
|
#include <stdio.h>
|
||
|
|
||
|
#include "xilinx_ip_defs.h"
|
||
|
|
||
|
void Generic_ExceptionCallback(void) {
|
||
|
for(;;) {
|
||
|
}
|
||
|
}
|
||
|
|
||
|
__attribute__((interrupt)) void Generic_TimerCallback(void) {
|
||
|
TIMER0->TCSR0 |= (1 << 0x08); // Clear interrupt;
|
||
|
SysTick++;
|
||
|
}
|