Skip to content

Commit

Permalink
fri: Fix spelling mistakes caught by spell-chceck job
Browse files Browse the repository at this point in the history
Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
  • Loading branch information
urutva committed Sep 21, 2023
1 parent a57a8cc commit a37ace3
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion Config/freertos-config/FreeRTOSConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ extern uint32_t SystemCoreClock;
#define configTIMER_TASK_STACK_DEPTH configMINIMAL_STACK_SIZE

/* Interrupt nesting behaviour configuration. */
/* FIXME: these were taken forom a cortex M4 example project */
/* FIXME: these were taken from a cortex M4 example project */
#define configKERNEL_INTERRUPT_PRIORITY 255 /* Should be set to the lowest interrupt priority */

/* !!!! configMAX_SYSCALL_INTERRUPT_PRIORITY must not be set to zero !!!!
Expand Down
6 changes: 3 additions & 3 deletions Docs/aws-iot-example.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ via MQTT as well as enable an over-the-air update.
* Adding the region name to your thing name helps to remind you which region
the thing and topic is attached to.
* You will need to add the thing name later to your C code.
* There is no need to add any **Additionional configuration**
* There is no need to add any **Additional configuration**
1. On the **Configure device certificate** page, choose **Auto-generate a new certificate** and then press the **Next** button.
1. Skip the **Attach policies to certificate** page for now.
* You will attach a certificate to the thing in a later step.
Expand Down Expand Up @@ -123,11 +123,11 @@ via MQTT as well as enable an over-the-air update.
* **iot:Publish**
* **iot:Subscribe**
* **iot:Receive**
* The **Policy resource** field requries an **ARN**. Sometimes this box will
* The **Policy resource** field requires an **ARN**. Sometimes this box will
be auto-filled with your credentials.
* If no value exists, use the following format: (arn:aws:iot:**region:account-id:\***)
* region (e.g. eu-west-1)
* account-id ... This is your **Acount ID Number**.
* account-id ... This is your **Account ID Number**.
* You can usually see this in the drop down on the top right corner
where your login name is shown.
* e.g. *arn:aws:iot:eu-west-1:012345678901:*
Expand Down
2 changes: 1 addition & 1 deletion Middleware/ARM/IoT_VSocket-lib/transport_tls_iot_socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ int32_t Transport_Send( NetworkContext_t * pNetworkContext,
* @param[out] pucReceiveBuffer Buffer to fill with received data.
* @param[in] xReceiveLength Length of previous parameter in bytes.
*
* @return The number of bytes actually read or appropirate error code.
* @return The number of bytes actually read or appropriate error code.
*/
static int Recv_Cb( void * pvCallerContext,
unsigned char * pucReceiveBuffer,
Expand Down
4 changes: 2 additions & 2 deletions Middleware/ARM/mbedtls-lib/src/tls_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ BaseType_t TLS_Init( TLSHelperParams_t * pxParams,

if( xPKCS11Result != CKR_OK )
{
LogError( ( "Failed to intialize PKCS11 session with error: %d", xPKCS11Result ) );
LogError( ( "Failed to initialize PKCS11 session with error: %d", xPKCS11Result ) );
xResult = pdFALSE;
}
}
Expand Down Expand Up @@ -721,7 +721,7 @@ BaseType_t TLS_Init( TLSHelperParams_t * pxParams,

if( xPKCS11Result != CKR_OK )
{
LogError( ( "Failed to intialize credentials, PKCS11 error: %d", xPKCS11Result ) );
LogError( ( "Failed to initialize credentials, PKCS11 error: %d", xPKCS11Result ) );
xResult = pdFALSE;
}
}
Expand Down
4 changes: 2 additions & 2 deletions Projects/aws-iot-example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ set(CONFIG_TFM_ENABLE_CP10CP11 ON)
# } x; /*!< @brief Version number of the firmware. */

# AWS OTA client doesn't use the patch version. Therefore, build version from TF-M is used. Because of this,
# if only patch version is changed then the OTA will be rejected due to same firmwrae version.
# if only patch version is changed then the OTA will be rejected due to same firmware version.
set(MCUBOOT_IMAGE_VERSION_NS "0.0.1+10")
set(MCUBOOT_IMAGE_VERSION_NS_UPDATE "0.0.1+20")

Expand Down Expand Up @@ -119,7 +119,7 @@ include(${MIDDLEWARE_DIR}/FreeRTOS/FreeRTOS-Libraries-Integration-Tests/qualific
include(${MIDDLEWARE_DIR}/FreeRTOS/FreeRTOS-Libraries-Integration-Tests/src/transport_interface_test.cmake)
include(${MIDDLEWARE_DIR}/FreeRTOS/FreeRTOS-Libraries-Integration-Tests/src/ota_pal_test.cmake)
include(${MIDDLEWARE_DIR}/FreeRTOS/FreeRTOS-Libraries-Integration-Tests/src/mqtt_test.cmake)
# overrride provisioning in PKCS11 tests with our provisioning
# override provisioning in PKCS11 tests with our provisioning
set(PKCS11_TEST_SOURCES
"${MIDDLEWARE_DIR}/FreeRTOS/FreeRTOS-Libraries-Integration-Tests/src/pkcs11/core_pkcs11_test.c")
set(PKCS11_TEST_INCLUDE_DIRS
Expand Down
2 changes: 1 addition & 1 deletion Projects/aws-iot-example/dev_mode_key_provisioning.c
Original file line number Diff line number Diff line change
Expand Up @@ -1008,7 +1008,7 @@ static CK_RV prvGetProvisionedState( CK_SESSION_HANDLE xSession,
/*-----------------------------------------------------------*/

/* Write the ASN.1 encoded bytes of the device public key to the console.
* This is for debugging purposes as well as to faciliate developer-driven
* This is for debugging purposes as well as to facilitate developer-driven
* certificate enrollment for onboard crypto hardware (i.e. if available). */
static void prvWriteHexBytesToConsole( char * pcDescription,
uint8_t * pucData,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ typedef struct ProvisioningParams_t
*/
CK_RV vDevModeKeyProvisioning( void );

/** \brief Provisiong a device given a valid PKCS #11 session.
/** \brief Provisioning a device given a valid PKCS #11 session.
*
* \param[in] xSession A valid PKCS #11 session.
* \param[in] pxParams Pointer to an initialized provisioning
Expand Down
8 changes: 4 additions & 4 deletions Projects/aws-iot-example/mqtt-agent-wrapper/ota_agent_task.c
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ static void prvMqttDataCallback( void * pContext,
*
* The callback is not subscribed with MQTT broker, but only with local subscription manager.
* A wildcard OTA job topic is used for subscription so that all unsolicited messages related to OTA is
* forwarded to this callback for filteration. Right now the callback is used to filter responses to job requests
* forwarded to this callback for filtration. Right now the callback is used to filter responses to job requests
* from the OTA service.
*
* @param[in] pvIncomingPublishCallbackContext MQTT context which stores the connection.
Expand Down Expand Up @@ -690,12 +690,12 @@ static void prvRegisterOTACallback( const char * pTopicFilter,
static void prvMQTTSubscribeCompleteCallback( MQTTAgentCommandContext_t * pxCommandContext,
MQTTAgentReturnInfo_t * pxReturnInfo )
{
MQTTAgentSubscribeArgs_t * pSubsribeArgs;
MQTTAgentSubscribeArgs_t * pSubscribeArgs;

if( pxReturnInfo->returnCode == MQTTSuccess )
{
pSubsribeArgs = ( MQTTAgentSubscribeArgs_t * ) ( pxCommandContext->pArgs );
prvRegisterOTACallback( pSubsribeArgs->pSubscribeInfo->pTopicFilter, pSubsribeArgs->pSubscribeInfo->topicFilterLength );
pSubscribeArgs = ( MQTTAgentSubscribeArgs_t * ) ( pxCommandContext->pArgs );
prvRegisterOTACallback( pSubscribeArgs->pSubscribeInfo->pTopicFilter, pSubscribeArgs->pSubscribeInfo->topicFilterLength );
}

/* Store the result in the application defined context so the task that
Expand Down
6 changes: 3 additions & 3 deletions Projects/aws-iot-example/mqtt_demo_pub_sub.c
Original file line number Diff line number Diff line change
Expand Up @@ -363,12 +363,12 @@ static void prvRegisterSubscribeCallback( const char * pTopicFilter,
static void prvSubscribeCommandCallback( MQTTAgentCommandContext_t * pxCommandContext,
MQTTAgentReturnInfo_t * pxReturnInfo )
{
MQTTAgentSubscribeArgs_t * pSubsribeArgs;
MQTTAgentSubscribeArgs_t * pSubscribeArgs;

if( pxReturnInfo->returnCode == MQTTSuccess )
{
pSubsribeArgs = ( MQTTAgentSubscribeArgs_t * ) ( pxCommandContext->pArgs );
prvRegisterSubscribeCallback( pSubsribeArgs->pSubscribeInfo->pTopicFilter, pSubsribeArgs->pSubscribeInfo->topicFilterLength );
pSubscribeArgs = ( MQTTAgentSubscribeArgs_t * ) ( pxCommandContext->pArgs );
prvRegisterSubscribeCallback( pSubscribeArgs->pSubscribeInfo->pTopicFilter, pSubscribeArgs->pSubscribeInfo->topicFilterLength );
}

/* Store the result in the application defined context so the task that
Expand Down

0 comments on commit a37ace3

Please sign in to comment.