Verified Commit bc7ab904 authored by Vincent Coubard's avatar Vincent Coubard
Browse files

Fix ATS warnings


Signed-off-by: Vincent Coubard's avatarVincent Coubard <vincent.coubard@arm.com>
parent 004235d7
......@@ -641,7 +641,9 @@
*
* Enable Counter Block Cipher mode (CTR) for symmetric ciphers.
*/
#ifndef MBEDTLS_CIPHER_MODE_CTR
#define MBEDTLS_CIPHER_MODE_CTR
#endif
/**
* \def MBEDTLS_CIPHER_MODE_OFB
......
......@@ -79,7 +79,7 @@ void Agent_InitializePool( void )
commandStructMessageCtx.queue = osMessageQueueNew( MQTT_COMMAND_CONTEXTS_POOL_SIZE,
sizeof( MQTTAgentCommand_t * ),
NULL);
configASSERT( commandStructMessageCtx.queue );
configASSERT( (uint32_t) commandStructMessageCtx.queue );
/* Populate the queue. */
for( i = 0; i < MQTT_COMMAND_CONTEXTS_POOL_SIZE; i++ )
......
......@@ -35,6 +35,7 @@
/* Standard includes. */
#include <stdio.h>
#include "cmsis_os2.h"
#include "os_tick.h"
/* Platform clock include. */
#include "platform/iot_platform_types_freertos.h"
......
......@@ -38,6 +38,7 @@
#include "iot_tls.h"
#include <string.h>
#include <stdbool.h>
/*-----------------------------------------------------------*/
......
......@@ -140,7 +140,7 @@ static CK_RV prvProvisionPrivateECKey( CK_SESSION_HANDLE xSession,
pxD = pvPortMalloc( EC_D_LENGTH );
if( ( pxD == NULL ) )
if( pxD == NULL )
{
xResult = CKR_HOST_MEMORY;
}
......
......@@ -1003,7 +1003,7 @@ BaseType_t TLS_Recv( void * pvContext,
/* If xResult == 0, then no data was received (and there is no error).
* The secure sockets API supports non-blocking read, so stop the loop,
* but don't flag an error. */
} while( ( xResult == MBEDTLS_ERR_SSL_WANT_READ ) );
} while( xResult == MBEDTLS_ERR_SSL_WANT_READ );
}
else
{
......
......@@ -26,6 +26,7 @@
/* FreeRTOS includes. */
#include "cmsis_os2.h"
#include "os_tick.h"
/* Logging includes. */
#include "iot_logging_task.h"
......@@ -226,7 +227,7 @@ static void prvLoggingPrintfCommon( uint8_t usLoggingLevel,
/* The queue is created by xLoggingTaskInitialize(). Check
* xLoggingTaskInitialize() has been called. */
configASSERT( xQueue );
configASSERT( (uint32_t) xQueue );
/* Allocate a buffer to hold the log message. */
pcPrintString = pvPortMalloc( configLOGGING_MAX_MESSAGE_LENGTH );
......@@ -457,7 +458,7 @@ void vLoggingPrint( const char * pcMessage )
/* The queue is created by xLoggingTaskInitialize(). Check
* xLoggingTaskInitialize() has been called. */
configASSERT( xQueue );
configASSERT( (uint32_t) xQueue );
xLength = strlen( pcMessage ) + 1;
pcPrintString = pvPortMalloc( xLength );
......
......@@ -42,4 +42,4 @@
#define TA1_HISTBIN 0
#define TA1_HISTCNT 0
#endif ETHOS_U55_H_
#endif /* ETHOS_U55_H_ */
......@@ -53,7 +53,7 @@ static osMutexId_t prvCreateUARTMutex( void )
0U // size for control block
};
xMutexHandle = osMutexNew( &Mutex_attr );
configASSERT( xMutexHandle );
configASSERT( (uint32_t) xMutexHandle );
return xMutexHandle;
}
/*-----------------------------------------------------------*/
......
......@@ -81,7 +81,6 @@ target_compile_definitions(kws
PRIVATE
ARMCM55
LIBRARY_LOG_LEVEL=3
MBEDTLS_CONFIG_FILE=<aws_mbedtls_config.h>
ACTIVATION_BUF_SRAM_SZ=0x00400000
ACTIVATION_BUF_SZ=0x00400000
ARM_MATH_DSP
......
......@@ -112,7 +112,7 @@ static OtaPalStatus_t CalculatePSAImageID( uint8_t slot,
return OTA_PAL_COMBINE_ERR( OtaPalRxFileCreateFailed, 0 );
}
*pxImageID = FWU_CALCULATE_IMAGE_ID(slot, ulImageType, ( uint16_t )pFileContext);
*pxImageID = FWU_CALCULATE_IMAGE_ID(slot, ulImageType, ( uint16_t ) ((uintptr_t) pFileContext));
return OTA_PAL_COMBINE_ERR( OtaPalSuccess, 0 );
}
......@@ -207,7 +207,7 @@ OtaPalStatus_t otaPal_CreateFileForRx( OtaFileContext_t * const pFileContext )
pxSystemContext = pFileContext;
xOTAImageID = ulImageID;
pFileContext->pFile = &xOTAImageID;
pFileContext->pFile = (uint8_t*) &xOTAImageID;
return OTA_PAL_COMBINE_ERR( OtaPalSuccess, 0 );
}
......
......@@ -107,7 +107,7 @@ void main_task(void *arg)
BaseType_t log_initialized = xLoggingTaskInitialize(0, osPriorityNormal2, IOT_LOGGING_QUEUE_SIZE);
if (log_initialized != pdTRUE) {
printf("Failed to initialize logging task [%d]\r\n", log_initialized);
printf("Failed to initialize logging task [%ld]\r\n", log_initialized);
return;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment