URL
https://opencores.org/ocsvn/neorv32/neorv32/trunk
Subversion Repositories neorv32
Compare Revisions
- This comparison shows the changes necessary to convert path
/neorv32/trunk/sw/example/demo_freeRTOS
- from Rev 62 to Rev 65
- ↔ Reverse comparison
Rev 62 → Rev 65
/main.c
106,7 → 106,7
prvSetupHardware(); |
|
/* say hi */ |
neorv32_uart_printf("FreeRTOS %s on NEORV32 Demo\n\n", tskKERNEL_VERSION_NUMBER); |
neorv32_uart0_printf("FreeRTOS %s on NEORV32 Demo\n\n", tskKERNEL_VERSION_NUMBER); |
|
/* The mainCREATE_SIMPLE_BLINKY_DEMO_ONLY setting is described at the top |
of this file. */ |
128,7 → 128,7
neorv32_gpio_port_set(0); |
|
// init UART at default baud rate, no parity bits, ho hw flow control |
neorv32_uart_setup(BAUD_RATE, PARITY_NONE, FLOW_CONTROL_NONE); |
neorv32_uart0_setup(BAUD_RATE, PARITY_NONE, FLOW_CONTROL_NONE); |
|
// check available hardware extensions and compare with compiler flags |
neorv32_rte_check_isa(0); // silent = 0 -> show message if isa mismatch |
145,7 → 145,7
|
void vSendString( const char * pcString ) |
{ |
neorv32_uart_print( ( const char * ) pcString ); |
neorv32_uart0_print( ( const char * ) pcString ); |
} |
|
/*-----------------------------------------------------------*/ |
163,7 → 163,7
to query the size of free heap space that remains (although it does not |
provide information on how the remaining heap might be fragmented). */ |
taskDISABLE_INTERRUPTS(); |
neorv32_uart_print("FreeRTOS_FAULT: vApplicationMallocFailedHook (solution: increase 'configTOTAL_HEAP_SIZE' in FreeRTOSConfig.h)\n"); |
neorv32_uart0_print("FreeRTOS_FAULT: vApplicationMallocFailedHook (solution: increase 'configTOTAL_HEAP_SIZE' in FreeRTOSConfig.h)\n"); |
__asm volatile( "ebreak" ); |
for( ;; ); |
} |
194,7 → 194,7
configCHECK_FOR_STACK_OVERFLOW is defined to 1 or 2. This hook |
function is called if a stack overflow is detected. */ |
taskDISABLE_INTERRUPTS(); |
neorv32_uart_print("FreeRTOS_FAULT: vApplicationStackOverflowHook\n"); |
neorv32_uart0_print("FreeRTOS_FAULT: vApplicationStackOverflowHook\n"); |
__asm volatile( "ebreak" ); |
for( ;; ); |
} |
217,7 → 217,7
/* This handler is responsible for handling all interrupts. Only the machine timer interrupt is handled by the kernel. */ |
void SystemIrqHandler( uint32_t mcause ) |
{ |
neorv32_uart_printf("freeRTOS: Unknown interrupt (0x%x)\n", mcause); |
neorv32_uart0_printf("freeRTOS: Unknown interrupt (0x%x)\n", mcause); |
} |
|
|
232,8 → 232,8
int main() { |
|
// init UART at default baud rate, no parity bits, ho hw flow control |
neorv32_uart_setup(BAUD_RATE, PARITY_NONE, FLOW_CONTROL_NONE); |
neorv32_uart_print("ERROR! FreeRTOS has not been compiled. Use >>make USER_FLAGS+=-DRUN_FREERTOS_DEMO clean_all exe<< to compile it.\n"); |
neorv32_uart0_setup(BAUD_RATE, PARITY_NONE, FLOW_CONTROL_NONE); |
neorv32_uart0_print("ERROR! FreeRTOS has not been compiled. Use >>make USER_FLAGS+=-DRUN_FREERTOS_DEMO clean_all exe<< to compile it.\n"); |
return 1; |
} |
#endif |
/makefile
53,8 → 53,8
RISCV_PREFIX ?= riscv32-unknown-elf- |
|
# CPU architecture and ABI |
MARCH ?= -march=rv32i |
MABI ?= -mabi=ilp32 |
MARCH ?= rv32i |
MABI ?= ilp32 |
|
# User flags for additional configuration (will be added to compiler flags) |
USER_FLAGS ?= |