From 381f4017f874754a066c108f107de3a5ab57891d Mon Sep 17 00:00:00 2001 From: richardbarry Date: Fri, 6 Apr 2012 19:47:30 +0000 Subject: [PATCH] Created and tested optimised build configuration for the XMC4500 demo. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1727 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- .../.cproject | 56 +++++++++++++++++++ .../FreeRTOSConfig.h | 2 +- .../main.c | 10 +++- .../main_blinky.c | 5 +- .../main_full.c | 5 +- 5 files changed, 73 insertions(+), 5 deletions(-) diff --git a/Demo/CORTEX_M4F_Infineon_XMC4500_Tasking/.cproject b/Demo/CORTEX_M4F_Infineon_XMC4500_Tasking/.cproject index a33848e39..5494c28cb 100644 --- a/Demo/CORTEX_M4F_Infineon_XMC4500_Tasking/.cproject +++ b/Demo/CORTEX_M4F_Infineon_XMC4500_Tasking/.cproject @@ -59,6 +59,62 @@ TASKING program builder v4.2r1 Build 063 + + + + + + + + + + + + + + + + + + + TASKING program builder v4.2r1 Build 063 + + diff --git a/Demo/CORTEX_M4F_Infineon_XMC4500_Tasking/FreeRTOSConfig.h b/Demo/CORTEX_M4F_Infineon_XMC4500_Tasking/FreeRTOSConfig.h index 4c1d32df8..bc8fcf3c0 100644 --- a/Demo/CORTEX_M4F_Infineon_XMC4500_Tasking/FreeRTOSConfig.h +++ b/Demo/CORTEX_M4F_Infineon_XMC4500_Tasking/FreeRTOSConfig.h @@ -137,7 +137,7 @@ to all Cortex-M ports, and do not rely on any particular library functions. */ /* Normal assert() semantics without relying on the provision of an assert.h header file. */ -#define configASSERT( x ) if( ( x ) == 0 ) { taskDISABLE_INTERRUPTS(); for( ;; ); } +#define configASSERT( x ) if( ( x ) == 0 ) { taskDISABLE_INTERRUPTS(); for( ;; ) __asm volatile( "NOP" ); } #endif /* FREERTOS_CONFIG_H */ diff --git a/Demo/CORTEX_M4F_Infineon_XMC4500_Tasking/main.c b/Demo/CORTEX_M4F_Infineon_XMC4500_Tasking/main.c index d443e5a6a..859ccb8f7 100644 --- a/Demo/CORTEX_M4F_Infineon_XMC4500_Tasking/main.c +++ b/Demo/CORTEX_M4F_Infineon_XMC4500_Tasking/main.c @@ -154,7 +154,10 @@ void vApplicationMallocFailedHook( void ) 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(); - for( ;; ); + for( ;; ) + { + __asm volatile( "NOP" ); + }; } /*-----------------------------------------------------------*/ @@ -181,7 +184,10 @@ void vApplicationStackOverflowHook( xTaskHandle pxTask, signed char *pcTaskName configCHECK_FOR_STACK_OVERFLOW is defined to 1 or 2. This hook function is called if a stack overflow is detected. */ taskDISABLE_INTERRUPTS(); - for( ;; ); + for( ;; ) + { + __asm volatile( "NOP" ); + } } /*-----------------------------------------------------------*/ diff --git a/Demo/CORTEX_M4F_Infineon_XMC4500_Tasking/main_blinky.c b/Demo/CORTEX_M4F_Infineon_XMC4500_Tasking/main_blinky.c index be344d5e9..b107a4c76 100644 --- a/Demo/CORTEX_M4F_Infineon_XMC4500_Tasking/main_blinky.c +++ b/Demo/CORTEX_M4F_Infineon_XMC4500_Tasking/main_blinky.c @@ -174,7 +174,10 @@ void main_blinky( void ) there was insufficient FreeRTOS heap memory available for the idle and/or timer tasks to be created. See the memory management section on the FreeRTOS web site for more details. */ - for( ;; ); + for( ;; ) + { + __asm volatile( "NOP" ); + } } /*-----------------------------------------------------------*/ diff --git a/Demo/CORTEX_M4F_Infineon_XMC4500_Tasking/main_full.c b/Demo/CORTEX_M4F_Infineon_XMC4500_Tasking/main_full.c index cc188f440..dedd84c25 100644 --- a/Demo/CORTEX_M4F_Infineon_XMC4500_Tasking/main_full.c +++ b/Demo/CORTEX_M4F_Infineon_XMC4500_Tasking/main_full.c @@ -215,7 +215,10 @@ xTimerHandle xCheckTimer = NULL; insufficient FreeRTOS heap memory available for the idle and/or timer tasks to be created. See the memory management section on the FreeRTOS web site for more details. */ - for( ;; ); + for( ;; ) + { + __asm volatile( "NOP" ); + } } /*-----------------------------------------------------------*/ -- 2.39.5