X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=FreeRTOS%2FDemo%2FMSP430X_MSP430FR5969_LaunchPad%2Fmain.c;h=6fcd16dca877b5359628cfa6ec258bac849fe154;hb=a5f9748975ff6cc5e185e62079519b67b8bd51fd;hp=7aaf5331e3fa916d27e8e723d4ff405e662d8289;hpb=a7cce90f1050fabe9b3fbe45cc9211d4a672f4f1;p=freertos diff --git a/FreeRTOS/Demo/MSP430X_MSP430FR5969_LaunchPad/main.c b/FreeRTOS/Demo/MSP430X_MSP430FR5969_LaunchPad/main.c index 7aaf5331e..6fcd16dca 100644 --- a/FreeRTOS/Demo/MSP430X_MSP430FR5969_LaunchPad/main.c +++ b/FreeRTOS/Demo/MSP430X_MSP430FR5969_LaunchPad/main.c @@ -184,19 +184,8 @@ void vApplicationStackOverflowHook( TaskHandle_t pxTask, char *pcTaskName ) void vApplicationIdleHook( void ) { -volatile size_t xFreeHeapSpace; - - /* This is just a trivial example of an idle hook. It is called on each - cycle of the idle task. It must *NOT* attempt to block. In this case the - idle task just queries the amount of FreeRTOS heap that remains. See the - memory management section on the http://www.FreeRTOS.org web site for memory - management options. If there is a lot of heap memory free then the - configTOTAL_HEAP_SIZE value in FreeRTOSConfig.h can be reduced to free up - RAM. */ - xFreeHeapSpace = xPortGetFreeHeapSize(); - - /* Remove compiler warning about xFreeHeapSpace being set but never used. */ - ( void ) xFreeHeapSpace; + __bis_SR_register( LPM4_bits + GIE ); + __no_operation(); } /*-----------------------------------------------------------*/