]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS-Labs/Demo/FreeRTOS_IoT_Libraries/utilities/task_pool/main.c
Update libraries and sundry check-ins ready for the V10.3.0 kernel release.
[freertos] / FreeRTOS-Labs / Demo / FreeRTOS_IoT_Libraries / utilities / task_pool / main.c
index f7bc12dcbbf281bba7d4eb1870d54e538ff578c0..22f95907c075ef821ca8d53f727904f108fc47d3 100644 (file)
@@ -146,6 +146,23 @@ extern uint32_t ulApplicationGetNextSequenceNumber( uint32_t ulSourceAddress,
 }\r
 /*-----------------------------------------------------------*/\r
 \r
+/*\r
+ * Supply a random number to FreeRTOS+TCP stack.\r
+ * THIS IS ONLY A DUMMY IMPLEMENTATION THAT RETURNS A PSEUDO RANDOM NUMBER\r
+ * SO IS NOT INTENDED FOR USE IN PRODUCTION SYSTEMS.\r
+ */\r
+BaseType_t xApplicationGetRandomNumber(uint32_t* pulNumber)\r
+{\r
+       /* This example is the first in a sequence that adds IoT functionality into\r
+       an existing TCP / IP project.In this first project the TCP / IP stack is not\r
+       actually used, but it is still built, which requires this function to be\r
+       present.For now this function does not need to do anything. */\r
+       __debugbreak();\r
+       *(pulNumber) = 0;\r
+       return pdFALSE;\r
+}\r
+/*-----------------------------------------------------------*/\r
+\r
 UBaseType_t uxRand( void )\r
 {\r
        /* This example is the first in a sequence that adds IoT functionality into\r