Skip to content

Commit

Permalink
Update libraries and sundry check-ins ready for the V10.3.0 kernel re…
Browse files Browse the repository at this point in the history
…lease.
  • Loading branch information
RichardBarry committed Feb 6, 2020
1 parent d319bb0 commit 7bea399
Show file tree
Hide file tree
Showing 52 changed files with 359 additions and 359 deletions.
13 changes: 13 additions & 0 deletions FreeRTOS-Labs/Demo/FreeRTOS_IoT_Libraries/https/common/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,19 @@ 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. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down
12 changes: 12 additions & 0 deletions FreeRTOS-Labs/Demo/FreeRTOS_IoT_Libraries/mqtt/common/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,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. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,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. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,23 @@ 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)
{
/* This example is the first in a sequence that adds IoT functionality into
an existing TCP / IP project.In this first project the TCP / IP stack is not
actually used, but it is still built, which requires this function to be
present.For now this function does not need to do anything. */
__debugbreak();
*(pulNumber) = 0;
return pdFALSE;
}
/*-----------------------------------------------------------*/

UBaseType_t uxRand( void )
{
/* This example is the first in a sequence that adds IoT functionality into
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -814,6 +814,19 @@ 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;
}

/*-----------------------------------------------------------*/

#if( ipconfigUSE_LLMNR != 0 ) || ( ipconfigUSE_NBNS != 0 ) || ( ipconfigDHCP_REGISTER_HOSTNAME != 0 )

const char *pcApplicationHostnameHook( void )
Expand Down
2 changes: 1 addition & 1 deletion FreeRTOS-Labs/Source/FreeRTOS-Plus-CLI/FreeRTOS_CLI.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* FreeRTOS+CLI V1.0.4
* FreeRTOS+CLI V1.0.x Labs copy
* Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
2 changes: 1 addition & 1 deletion FreeRTOS-Labs/Source/FreeRTOS-Plus-CLI/FreeRTOS_CLI.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* FreeRTOS+CLI V1.0.4
* FreeRTOS+CLI V1.0.x Labs copy
* Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
Expand Down
2 changes: 1 addition & 1 deletion FreeRTOS-Labs/Source/FreeRTOS-Plus-CLI/History.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Changes between V1.0.3 and V1.0.4 released
Changes between V1.0.3 and TBD

+ Update to use stdint and the FreeRTOS specific typedefs that were
introduced in FreeRTOS V8.0.0.
Expand Down
Loading

0 comments on commit 7bea399

Please sign in to comment.