aboutsummaryrefslogtreecommitdiffstats
path: root/libraries/FreeRTOS
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/FreeRTOS')
-rw-r--r--libraries/FreeRTOS/MapleFreeRTOS.cpp17
-rw-r--r--libraries/FreeRTOS/MapleFreeRTOS.h14
2 files changed, 16 insertions, 15 deletions
diff --git a/libraries/FreeRTOS/MapleFreeRTOS.cpp b/libraries/FreeRTOS/MapleFreeRTOS.cpp
index 2d63e0d..d235ceb 100644
--- a/libraries/FreeRTOS/MapleFreeRTOS.cpp
+++ b/libraries/FreeRTOS/MapleFreeRTOS.cpp
@@ -28,16 +28,17 @@
extern "C" {
-void vApplicationStackOverflowHook( xTaskHandle *pxTask, signed char *pcTaskName )
-{
- /* This function will get called if a task overflows its stack. If the
- parameters are corrupt then inspect pxCurrentTCB to find which was the
- offending task. */
+void vApplicationStackOverflowHook(xTaskHandle *pxTask,
+ signed char *pcTaskName) {
+ /* This function will get called if a task overflows its stack.
+ * If the parameters are corrupt then inspect pxCurrentTCB to find
+ * which was the offending task. */
- ( void ) pxTask;
- ( void ) pcTaskName;
+ (void) pxTask;
+ (void) pcTaskName;
- for( ;; );
+ while (1)
+ ;
}
}
diff --git a/libraries/FreeRTOS/MapleFreeRTOS.h b/libraries/FreeRTOS/MapleFreeRTOS.h
index 0fcc2ae..839e3e2 100644
--- a/libraries/FreeRTOS/MapleFreeRTOS.h
+++ b/libraries/FreeRTOS/MapleFreeRTOS.h
@@ -24,17 +24,17 @@
* SOFTWARE.
*****************************************************************************/
-#ifndef __FREERTOS__
-#define __FREERTOS__
+#ifndef __MAPLE_FREERTOS_H__
+#define __MAPLE_FREERTOS_H__
#include "wirish.h"
extern "C" {
- #define GCC_ARMCM3
- #include "utility/FreeRTOS.h"
- #include "utility/task.h"
- #include "utility/queue.h"
- #include "utility/semphr.h"
+#define GCC_ARMCM3
+#include "utility/FreeRTOS.h"
+#include "utility/task.h"
+#include "utility/queue.h"
+#include "utility/semphr.h"
}
#endif