]> git.sur5r.net Git - freertos/commitdiff
Add assert required for linking.
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Mon, 22 Sep 2008 13:13:03 +0000 (13:13 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Mon, 22 Sep 2008 13:13:03 +0000 (13:13 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@474 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Demo/Common/ethernet/lwIP_130/contrib/port/FreeRTOS/sys_arch.c

index 9baf7358026bbb841aede478ad1e65a8a815bd32..0fc4274b8fee0b4e89c415e0f5c1315e2fedb9e4 100644 (file)
@@ -422,3 +422,16 @@ void sys_arch_unprotect(sys_prot_t pval)
        vPortExitCritical();\r
 }\r
 \r
+/*\r
+ * Prints an assertion messages and aborts execution.\r
+ */\r
+void sys_assert( const char *msg )\r
+{      \r
+       /*FSL:only needed for debugging\r
+       printf(msg);\r
+       printf("\n\r");\r
+       */\r
+    vPortEnterCritical(  );\r
+    for(;;)\r
+    ;\r
+}\r