diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 29 |
1 files changed, 0 insertions, 29 deletions
@@ -185,32 +185,3 @@ void print_hex(uint32_t x) ++i; } } - - -IRQ(exc) -{ - uint32_t mcause, mepc, mtval, *sp; - - asm volatile("csrr %0, mcause" : "=r"(mcause)); - asm volatile("csrr %0, mepc" : "=r"(mepc)); - asm volatile("csrr %0, mtval" : "=r"(mtval)); - - printf("Hardware Exception Caught:\n"); - printf(" mcause: 0x%80x\n", mcause); - printf(" mepc: 0x%80x\n", mepc); - printf(" mtval: 0x%80x\n", mtval); - - panic(mcause); - - while (1); -} - -IRQ(nmi) -{ - while (1) { - GPIO_PORT.out.set(GPIO_PORT_A, ON, 8); - delay(); - GPIO_PORT.out.set(GPIO_PORT_A, OFF, 8); - delay(); - } -} |