X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=FreeRTOS-Labs%2FDemo%2FFreeRTOS_IoT_Libraries%2Fjobs%2Fjobs_notify_next%2Fmain.c;fp=FreeRTOS-Labs%2FDemo%2FFreeRTOS_IoT_Libraries%2Fjobs%2Fjobs_notify_next%2Fmain.c;h=f06d37c21038cf9aa512c6cad414c635e85614ee;hb=38a770622c6843e732738fe34ccd3772b4ac160c;hp=e07f2c2eb35fe6ce4b3d6ab0ef6e4a36eb3c0592;hpb=53b6a1d8973d8e067ef9561154aad789b91c936a;p=freertos diff --git a/FreeRTOS-Labs/Demo/FreeRTOS_IoT_Libraries/jobs/jobs_notify_next/main.c b/FreeRTOS-Labs/Demo/FreeRTOS_IoT_Libraries/jobs/jobs_notify_next/main.c index e07f2c2eb..f06d37c21 100644 --- a/FreeRTOS-Labs/Demo/FreeRTOS_IoT_Libraries/jobs/jobs_notify_next/main.c +++ b/FreeRTOS-Labs/Demo/FreeRTOS_IoT_Libraries/jobs/jobs_notify_next/main.c @@ -305,6 +305,18 @@ extern uint32_t ulApplicationGetNextSequenceNumber( uint32_t ulSourceAddress, } /*-----------------------------------------------------------*/ +/* + * Supply a random number to FreeRTOS+TCP stack. + * THIS IS ONLY A DUMMY IMPLEMENTATION THAT RETURNS A PSEUDO RANDOM NUMBER + * SO IS NOT INTENDED FOR USE IN PRODUCTION SYSTEMS. + */ +BaseType_t xApplicationGetRandomNumber(uint32_t* pulNumber) +{ + *(pulNumber) = uxRand(); + return pdTRUE; +} +/*-----------------------------------------------------------*/ + /* configUSE_STATIC_ALLOCATION is set to 1, so the application must provide an implementation of vApplicationGetIdleTaskMemory() to provide the memory that is used by the Idle task. */