added commenting, removed deprecated functions
[cortex-from-scratch] / ivt.c
diff --git a/ivt.c b/ivt.c
index 02c45ec..d62a8dd 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);
@@ -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);
 
 }