Skip to content

Commit 7bea399

Browse files
committed
Update libraries and sundry check-ins ready for the V10.3.0 kernel release.
1 parent d319bb0 commit 7bea399

File tree

52 files changed

+359
-359
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+359
-359
lines changed

FreeRTOS-Labs/Demo/FreeRTOS_IoT_Libraries/https/common/main.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,19 @@ extern uint32_t ulApplicationGetNextSequenceNumber( uint32_t ulSourceAddress,
305305
}
306306
/*-----------------------------------------------------------*/
307307

308+
/*
309+
* Supply a random number to FreeRTOS+TCP stack.
310+
* THIS IS ONLY A DUMMY IMPLEMENTATION THAT RETURNS A PSEUDO RANDOM NUMBER
311+
* SO IS NOT INTENDED FOR USE IN PRODUCTION SYSTEMS.
312+
*/
313+
BaseType_t xApplicationGetRandomNumber(uint32_t* pulNumber)
314+
{
315+
*(pulNumber) = uxRand();
316+
return pdTRUE;
317+
}
318+
319+
/*-----------------------------------------------------------*/
320+
308321
/* configUSE_STATIC_ALLOCATION is set to 1, so the application must provide an
309322
implementation of vApplicationGetIdleTaskMemory() to provide the memory that is
310323
used by the Idle task. */

FreeRTOS-Labs/Demo/FreeRTOS_IoT_Libraries/jobs/jobs_notify_next/main.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,18 @@ extern uint32_t ulApplicationGetNextSequenceNumber( uint32_t ulSourceAddress,
305305
}
306306
/*-----------------------------------------------------------*/
307307

308+
/*
309+
* Supply a random number to FreeRTOS+TCP stack.
310+
* THIS IS ONLY A DUMMY IMPLEMENTATION THAT RETURNS A PSEUDO RANDOM NUMBER
311+
* SO IS NOT INTENDED FOR USE IN PRODUCTION SYSTEMS.
312+
*/
313+
BaseType_t xApplicationGetRandomNumber(uint32_t* pulNumber)
314+
{
315+
*(pulNumber) = uxRand();
316+
return pdTRUE;
317+
}
318+
/*-----------------------------------------------------------*/
319+
308320
/* configUSE_STATIC_ALLOCATION is set to 1, so the application must provide an
309321
implementation of vApplicationGetIdleTaskMemory() to provide the memory that is
310322
used by the Idle task. */

FreeRTOS-Labs/Demo/FreeRTOS_IoT_Libraries/mqtt/common/main.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,18 @@ extern uint32_t ulApplicationGetNextSequenceNumber( uint32_t ulSourceAddress,
314314
}
315315
/*-----------------------------------------------------------*/
316316

317+
/*
318+
* Supply a random number to FreeRTOS+TCP stack.
319+
* THIS IS ONLY A DUMMY IMPLEMENTATION THAT RETURNS A PSEUDO RANDOM NUMBER
320+
* SO IS NOT INTENDED FOR USE IN PRODUCTION SYSTEMS.
321+
*/
322+
BaseType_t xApplicationGetRandomNumber(uint32_t* pulNumber)
323+
{
324+
*(pulNumber) = uxRand();
325+
return pdTRUE;
326+
}
327+
/*-----------------------------------------------------------*/
328+
317329
/* configUSE_STATIC_ALLOCATION is set to 1, so the application must provide an
318330
implementation of vApplicationGetIdleTaskMemory() to provide the memory that is
319331
used by the Idle task. */

FreeRTOS-Labs/Demo/FreeRTOS_IoT_Libraries/shadow/shadow_device_operations/main.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,18 @@ extern uint32_t ulApplicationGetNextSequenceNumber( uint32_t ulSourceAddress,
306306
}
307307
/*-----------------------------------------------------------*/
308308

309+
/*
310+
* Supply a random number to FreeRTOS+TCP stack.
311+
* THIS IS ONLY A DUMMY IMPLEMENTATION THAT RETURNS A PSEUDO RANDOM NUMBER
312+
* SO IS NOT INTENDED FOR USE IN PRODUCTION SYSTEMS.
313+
*/
314+
BaseType_t xApplicationGetRandomNumber(uint32_t* pulNumber)
315+
{
316+
*(pulNumber) = uxRand();
317+
return pdTRUE;
318+
}
319+
/*-----------------------------------------------------------*/
320+
309321
/* configUSE_STATIC_ALLOCATION is set to 1, so the application must provide an
310322
implementation of vApplicationGetIdleTaskMemory() to provide the memory that is
311323
used by the Idle task. */

FreeRTOS-Labs/Demo/FreeRTOS_IoT_Libraries/utilities/task_pool/main.c

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,23 @@ extern uint32_t ulApplicationGetNextSequenceNumber( uint32_t ulSourceAddress,
146146
}
147147
/*-----------------------------------------------------------*/
148148

149+
/*
150+
* Supply a random number to FreeRTOS+TCP stack.
151+
* THIS IS ONLY A DUMMY IMPLEMENTATION THAT RETURNS A PSEUDO RANDOM NUMBER
152+
* SO IS NOT INTENDED FOR USE IN PRODUCTION SYSTEMS.
153+
*/
154+
BaseType_t xApplicationGetRandomNumber(uint32_t* pulNumber)
155+
{
156+
/* This example is the first in a sequence that adds IoT functionality into
157+
an existing TCP / IP project.In this first project the TCP / IP stack is not
158+
actually used, but it is still built, which requires this function to be
159+
present.For now this function does not need to do anything. */
160+
__debugbreak();
161+
*(pulNumber) = 0;
162+
return pdFALSE;
163+
}
164+
/*-----------------------------------------------------------*/
165+
149166
UBaseType_t uxRand( void )
150167
{
151168
/* This example is the first in a sequence that adds IoT functionality into

FreeRTOS-Labs/Demo/FreeRTOS_Plus_TCP_and_FAT_Windows_Simulator/main.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -814,6 +814,19 @@ extern uint32_t ulApplicationGetNextSequenceNumber(uint32_t ulSourceAddress,
814814
}
815815
/*-----------------------------------------------------------*/
816816

817+
/*
818+
* Supply a random number to FreeRTOS+TCP stack.
819+
* THIS IS ONLY A DUMMY IMPLEMENTATION THAT RETURNS A PSEUDO RANDOM NUMBER
820+
* SO IS NOT INTENDED FOR USE IN PRODUCTION SYSTEMS.
821+
*/
822+
BaseType_t xApplicationGetRandomNumber(uint32_t* pulNumber)
823+
{
824+
*(pulNumber) = uxRand();
825+
return pdTRUE;
826+
}
827+
828+
/*-----------------------------------------------------------*/
829+
817830
#if( ipconfigUSE_LLMNR != 0 ) || ( ipconfigUSE_NBNS != 0 ) || ( ipconfigDHCP_REGISTER_HOSTNAME != 0 )
818831

819832
const char *pcApplicationHostnameHook( void )

FreeRTOS-Labs/Source/FreeRTOS-Plus-CLI/FreeRTOS_CLI.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* FreeRTOS+CLI V1.0.4
2+
* FreeRTOS+CLI V1.0.x Labs copy
33
* Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

FreeRTOS-Labs/Source/FreeRTOS-Plus-CLI/FreeRTOS_CLI.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* FreeRTOS+CLI V1.0.4
2+
* FreeRTOS+CLI V1.0.x Labs copy
33
* Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
44
*
55
* Permission is hereby granted, free of charge, to any person obtaining a copy of

FreeRTOS-Labs/Source/FreeRTOS-Plus-CLI/History.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Changes between V1.0.3 and V1.0.4 released
1+
Changes between V1.0.3 and TBD
22

33
+ Update to use stdint and the FreeRTOS specific typedefs that were
44
introduced in FreeRTOS V8.0.0.

0 commit comments

Comments
 (0)