Skip to content

Commit

Permalink
Merge branch 'main' into add-smp-OTT-interrupt-wait-critical
Browse files Browse the repository at this point in the history
  • Loading branch information
chinglee-iot authored Aug 15, 2024
2 parents 0ca5e81 + a004a21 commit 45fdc3c
Show file tree
Hide file tree
Showing 223 changed files with 73,117 additions and 561 deletions.
1 change: 1 addition & 0 deletions .github/.cSpellWords.txt
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,7 @@ CMock
CNBTR
CNDA
CNDTR
CNOT
CNTALOAD
CNTAMAX
CNTBLOAD
Expand Down
1 change: 1 addition & 0 deletions .github/scripts/core_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@
r'FreeRTOS/Demo/CORTEX_M4F_Infineon_XMC4000_Keil/.*',
r'FreeRTOS/Demo/CORTEX_MPU_R4F_TI_RM46_HERCULES_GCC/BoardFiles/.*',
r'FreeRTOS/Demo/CORTEX_MPU_R5F_TI_RM57_HERCULES_GCC/BoardFiles/.*',
r'FreeRTOS/Demo/CORTEX_No_GIC_R5F_TI_RM57_HERCULES_GCC/BoardFiles/.*',
r'FreeRTOS/Demo/AVR_ATMega4809_Atmel_Studio/RTOSDemo/.*',
r'FreeRTOS/Demo/AVR32_UC3/.*',
r'FreeRTOS/Demo/AVR_ATMega4809_IAR/.*',
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
# Therefore, we can just download it.
mkdir -p freertos/FreeRTOS-Plus/Source/Application-Protocols/coreMQTT-Agent/source/dependency/coreMQTT/docs/doxygen/output
wget -O freertos/FreeRTOS-Plus/Source/Application-Protocols/coreMQTT-Agent/source/dependency/coreMQTT/docs/doxygen/output/mqtt.tag \
"https://freertos.org/Documentation/api-ref/coreMQTT/docs/doxygen/output/mqtt.tag"
"https://freertos.github.io/coreMQTT/main/mqtt.tag"
- name: Generate doxygen ZIP
uses: FreeRTOS/CI-CD-Github-Actions/doxygen@main
Expand Down Expand Up @@ -168,6 +168,8 @@ jobs:
- name: Set up CBMC runner
uses: FreeRTOS/CI-CD-Github-Actions/set_up_cbmc_runner@main
with:
cbmc_version: "5.95.1"

- name: Run CBMC
uses: FreeRTOS/CI-CD-Github-Actions/run_cbmc@main
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/freertos_plus_demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,7 @@ jobs:
- env:
stepName: Build AWS IoT Fleet Provisioning Demo
name: ${{ env.stepName }}
working-directory: FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/Fleet_Provisioning_With_CSR_Demo
working-directory: FreeRTOS-Plus/Demo/AWS/Fleet_Provisioning_Windows_Simulator/CSR_Demo
run: |
# ${{ env.stepName }}
echo "::group::${{ env.stepName }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,10 @@ static bool prvUnsubscribeFromRegisterThingResponseTopics( void );
static int prvFleetProvisioningTask( void * pvParameters );


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

BaseType_t xPlatformIsNetworkUp( void );

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

static void prvProvisioningPublishCallback( MQTTContext_t * pxMqttContext,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
/*-----------------------------------------------------------*/

extern void vStartFleetProvisioningDemo( void );
extern void vPlatformInitIpStack( void );

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ bool xGenerateKeyAndCsr( CK_SESSION_HANDLE xP11Session,
CK_OBJECT_HANDLE xPubKeyHandle;
CK_RV xPkcs11Ret = CKR_OK;
mbedtls_pk_context xPrivKey;
mbedtls_ecdsa_context xEcdsaContext;
mbedtls_x509write_csr xReq;
int32_t ulMbedtlsRet = -1;
const mbedtls_pk_info_t * pxHeader = mbedtls_pk_info_from_type( MBEDTLS_PK_ECKEY );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,7 @@ BaseType_t xEstablishMqttSession( MQTTContext_t * pxMqttContext,
}
}

if( xReturnStatus == pdFAIL )
if( xReturnStatus != pdFAIL )
{
/* Keep a flag for indicating if MQTT session is established. This
* flag will mark that an MQTT DISCONNECT has to be sent at the end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,10 @@ static MQTTStatus_t prvProcessLoopWithTimeout( MQTTContext_t * pMqttContext,

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

extern UBaseType_t uxRand( void );

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

static int32_t prvGenerateRandomNumber()
{
return( uxRand() & INT32_MAX );
Expand Down Expand Up @@ -794,7 +798,7 @@ BaseType_t xEstablishMqttSession( MQTTContext_t * pxMqttContext,
}
}

if( xReturnStatus == pdFAIL )
if( xReturnStatus != pdFAIL )
{
/* Keep a flag for indicating if MQTT session is established. This
* flag will mark that an MQTT DISCONNECT has to be sent at the end
Expand Down
4 changes: 2 additions & 2 deletions FreeRTOS-Plus/Demo/Common/Logging/windows/Logging_WinSim.c
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ void vLoggingPrintf( const char * pcFormat,
pcTarget--;
}

sscanf( pcTarget, "%8X", &ulIPAddress );
( void ) sscanf( pcTarget, "%8X", &ulIPAddress );
rc = sprintf( pcTarget, "%lu.%lu.%lu.%lu",
( unsigned long ) ( ulIPAddress >> 24UL ),
( unsigned long ) ( ( ulIPAddress >> 16UL ) & 0xffUL ),
Expand Down Expand Up @@ -601,7 +601,7 @@ static void prvLogToFile( const char * pcMessage,
remove( pcFullLogFileName );
}

rename( pcLogFileName, pcFullLogFileName );
( void ) rename( pcLogFileName, pcFullLogFileName );
ulSizeOfLoggingFile = 0;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
#include "freertos_command_pool.h"
#include "freertos_agent_message.h"

/* Demo config include. */
#include "demo_config.h"

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

#define QUEUE_NOT_INITIALIZED ( 0U )
Expand Down
Loading

0 comments on commit 45fdc3c

Please sign in to comment.