]> 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 73917d2d5d8bfeaef24dd08ef0508313940dfe79..a902e6349f936418e592bf3e1bba75b476f65a02 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
- * FreeRTOS Kernel V10.2.0\r
+ * FreeRTOS Kernel V10.2.1\r
  * Copyright (C) 2019 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
  *\r
  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
@@ -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
@@ -75,9 +79,9 @@ that make up the total heap.  heap_5 is only used for test and example purposes
 as this demo could easily create one large heap region instead of multiple\r
 smaller heap regions - in which case heap_4.c would be the more appropriate\r
 choice.  See http://www.freertos.org/a00111.html for an explanation. */\r
-#define mainREGION_1_SIZE      7201\r
+#define mainREGION_1_SIZE      8201\r
 #define mainREGION_2_SIZE      29905\r
-#define mainREGION_3_SIZE      6407\r
+#define mainREGION_3_SIZE      7607\r
 \r
 /*-----------------------------------------------------------*/\r
 \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