]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/MSP430X_MSP430FR5969_LaunchPad/main.c
Change some data types in heap_4.c to allow it to be used on hardware that has 16...
[freertos] / FreeRTOS / Demo / MSP430X_MSP430FR5969_LaunchPad / main.c
index 7aaf5331e3fa916d27e8e723d4ff405e662d8289..6fcd16dca877b5359628cfa6ec258bac849fe154 100644 (file)
@@ -184,19 +184,8 @@ void vApplicationStackOverflowHook( TaskHandle_t pxTask, char *pcTaskName )
 \r
 void vApplicationIdleHook( void )\r
 {\r
-volatile size_t xFreeHeapSpace;\r
-\r
-       /* This is just a trivial example of an idle hook.  It is called on each\r
-       cycle of the idle task.  It must *NOT* attempt to block.  In this case the\r
-       idle task just queries the amount of FreeRTOS heap that remains.  See the\r
-       memory management section on the http://www.FreeRTOS.org web site for memory\r
-       management options.  If there is a lot of heap memory free then the\r
-       configTOTAL_HEAP_SIZE value in FreeRTOSConfig.h can be reduced to free up\r
-       RAM. */\r
-       xFreeHeapSpace = xPortGetFreeHeapSize();\r
-\r
-       /* Remove compiler warning about xFreeHeapSpace being set but never used. */\r
-       ( void ) xFreeHeapSpace;\r
+    __bis_SR_register( LPM4_bits + GIE );\r
+    __no_operation();\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r