]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/WIN32-MSVC/main.c
Minor bug fix in NTPDemo.c -> use of FREERTOS_INVALID_SOCKET in place of NULL.
[freertos] / FreeRTOS / Demo / WIN32-MSVC / main.c
index bccd97b9b33139c35d3e0397dddab5629d7eb6b1..a902e6349f936418e592bf3e1bba75b476f65a02 100644 (file)
@@ -7,7 +7,7 @@
  * the Software without restriction, including without limitation the rights to\r
  * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\r
  * the Software, and to permit persons to whom the Software is furnished to do so,\r
- * subject to the following conditions:\r
+ * subject to the fofllowing conditions:\r
  *\r
  * The above copyright notice and this permission notice shall be included in all\r
  * copies or substantial portions of the Software.\r
 #include <stdlib.h>\r
 #include <conio.h>\r
 \r
+/* Visual studio intrinsics used so the __debugbreak() function is available\r
+should an assert get hit. */\r
+#include <intrin.h>\r
+\r
 /* FreeRTOS kernel includes. */\r
 #include "FreeRTOS.h"\r
 #include "task.h"\r
@@ -288,6 +292,9 @@ volatile uint32_t ulSetToNonZeroInDebuggerToContinue = 0;
                        }\r
                }\r
 \r
+               /* Cause debugger break point if being debugged. */\r
+               __debugbreak();\r
+\r
                /* You can step out of this function to debug the assertion by using\r
                the debugger to set ulSetToNonZeroInDebuggerToContinue to a non-zero\r
                value. */\r