]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/RISC-V_RV32_SiFive_HiFive1-RevB_IAR/main.c
Update the GCC and IAR SiFive HiFive rev-b demos to use the new configMTIME_BASE_ADDR...
[freertos] / FreeRTOS / Demo / RISC-V_RV32_SiFive_HiFive1-RevB_IAR / main.c
index f7adaedee8eeef27821df07303c32414bafb77f7..4d9eeae013feaa582a99864321709ee3d11fcf40 100644 (file)
@@ -270,23 +270,11 @@ void vApplicationHandleTrap( uint32_t mcause )
 {\r
 char pcCause[ 20 ];\r
 \r
-       /* Not implemented yet. */\r
+       #warning vApplicationHandleTrap not implemented.\r
+       /* Not implemented yet! */\r
        sprintf( pcCause, "%u", mcause );\r
        vSendString( pcCause );\r
        configASSERT( mcause == 0 );\r
-#warning vApplicationHandleTrap not implemented.\r
-#if 0\r
-uint32_t ulInterruptNumber;\r
-typedef void ( * irq_handler_t )( void );\r
-extern const irq_handler_t isrTable[];\r
-\r
-       ulInterruptNumber = PLIC->TARGET[ 0 ].CLAIM_COMPLETE;\r
-\r
-       /* Read handler from table. */\r
-       /* Call handler. */\r
-\r
-       PLIC->TARGET[ 0 ].CLAIM_COMPLETE = ulInterruptNumber;\r
-#endif\r
 }\r
 \r
 /*-----------------------------------------------------------*/\r
@@ -300,3 +288,4 @@ void *malloc( size_t xSize )
        return NULL;\r
 }\r
 /*-----------------------------------------------------------*/\r
+\r