aboutsummaryrefslogtreecommitdiffstats
path: root/libraries/FreeRTOS/MapleFreeRTOS.cpp
diff options
context:
space:
mode:
authorNis Sarup <nis@sarup.dk>2011-06-21 17:02:06 +0200
committerNis Sarup <nis@sarup.dk>2011-06-21 17:02:06 +0200
commit4755bd8fe252ffdc07de99e11ef049402f875108 (patch)
tree6823c2549f27c160f6f49fd5ea87cb4573d2d027 /libraries/FreeRTOS/MapleFreeRTOS.cpp
parent7ebddc4fca0e77904f56471c9f2759c2ff256e5a (diff)
downloadlibrambutan-4755bd8fe252ffdc07de99e11ef049402f875108.tar.gz
librambutan-4755bd8fe252ffdc07de99e11ef049402f875108.zip
FreeRTOS: Added FreeRTOS 7.0.1, including hook in libmaple/systick.c and example blinky.
Diffstat (limited to 'libraries/FreeRTOS/MapleFreeRTOS.cpp')
-rw-r--r--libraries/FreeRTOS/MapleFreeRTOS.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/libraries/FreeRTOS/MapleFreeRTOS.cpp b/libraries/FreeRTOS/MapleFreeRTOS.cpp
new file mode 100644
index 0000000..da06b3d
--- /dev/null
+++ b/libraries/FreeRTOS/MapleFreeRTOS.cpp
@@ -0,0 +1,17 @@
+#include "MapleFreeRTOS.h"
+
+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 ) pxTask;
+ ( void ) pcTaskName;
+
+ for( ;; );
+}
+
+}