]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Source/portable/MPLAB/PIC32MX/port.c
Multiple tidy up, documentation corrections and typo corrections highlighted by Tamas...
[freertos] / FreeRTOS / Source / portable / MPLAB / PIC32MX / port.c
index 968cda3c4047e6bce57b58f72e7e51f3310e4ab3..cb8ba11d69f7cc1bedefb39cab83cbf623d5917b 100644 (file)
@@ -270,10 +270,9 @@ const unsigned long ulCompareMatch = ( (configPERIPHERAL_CLOCK_HZ / portTIMER_PR
 \r
 void vPortEndScheduler(void)\r
 {\r
-       /* It is unlikely that the scheduler for the PIC port will get stopped\r
-       once running.  If required disable the tick interrupt here, then return\r
-       to xPortStartScheduler(). */\r
-       for( ;; );\r
+       /* Not implemented in ports where there is nothing to return to.\r
+       Artificially force an assert. */\r
+       configASSERT( uxInterruptNesting == 1000UL );\r
 }\r
 /*-----------------------------------------------------------*/\r
 \r