st7735s: signs of life
[cortex-from-scratch] / ivt.c
diff --git a/ivt.c b/ivt.c
index 02c45ec..a271487 100644 (file)
--- a/ivt.c
+++ b/ivt.c
@@ -113,7 +113,6 @@ __attribute__ ((interrupt))
 void * dummy_isr( struct interrupt_frame * frame ) {
 
        uint8_t nr = *SCB_VTOR_ST & 0xFF;
-       //printf("PC:%p\n",frame->lr);
        printf("EXCEPTION: %s\n", exception_message(nr));
        printf("STACK TRACE:\n");
        printf("R0:%p\n",frame->r0);
@@ -125,7 +124,7 @@ void * dummy_isr( struct interrupt_frame * frame ) {
        printf("PC:%p\n",frame->pc);
        printf("PSR:%p\n",frame->psr);
        
-       //for(;;);
+       for(;;);
 }
 
 /* Initialize interrupt vector  */
@@ -149,6 +148,6 @@ void ivt_init() {
         * relocated to other memory locations. We can do this by setting 
         * a register in the NVIC called the vector table offset register */
 
-       regw_u32(SCB_VTOR, (uint32_t) &ivt, 0, OWRITE);
+       rwrite(SCB_VTOR, (uint32_t) &ivt);
 
 }