Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
IoT
Open IoT SDK
examples
total-solutions
Commits
bc7ab904
Verified
Commit
bc7ab904
authored
May 20, 2022
by
Vincent Coubard
Browse files
Fix ATS warnings
Signed-off-by:
Vincent Coubard
<
vincent.coubard@arm.com
>
parent
004235d7
Changes
12
Hide whitespace changes
Inline
Side-by-side
bsp/aws_libraries/3rdparty/mbedtls_config/aws_mbedtls_config.h
View file @
bc7ab904
...
...
@@ -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
...
...
bsp/aws_libraries/abstractions/mqtt_agent/freertos_command_pool.c
View file @
bc7ab904
...
...
@@ -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
++
)
...
...
bsp/aws_libraries/abstractions/platform/freertos/iot_clock_freertos.c
View file @
bc7ab904
...
...
@@ -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"
...
...
bsp/aws_libraries/abstractions/secure_sockets/lwip/iot_secure_sockets.c
View file @
bc7ab904
...
...
@@ -38,6 +38,7 @@
#include
"iot_tls.h"
#include
<string.h>
#include
<stdbool.h>
/*-----------------------------------------------------------*/
...
...
bsp/aws_libraries/demos/dev_mode_key_provisioning/src/aws_dev_mode_key_provisioning.c
View file @
bc7ab904
...
...
@@ -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
;
}
...
...
bsp/aws_libraries/freertos_plus/standard/tls/src/iot_tls.c
View file @
bc7ab904
...
...
@@ -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
{
...
...
bsp/aws_libraries/logging/iot_logging_task_dynamic_buffers.c
View file @
bc7ab904
...
...
@@ -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
);
...
...
bsp/ethos-u55/an547/ethos-u55.h
View file @
bc7ab904
...
...
@@ -42,4 +42,4 @@
#define TA1_HISTBIN 0
#define TA1_HISTCNT 0
#endif ETHOS_U55_H_
#endif
/*
ETHOS_U55_H_
*/
bsp/freertos-platform/print_log.c
View file @
bc7ab904
...
...
@@ -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
;
}
/*-----------------------------------------------------------*/
...
...
kws/CMakeLists.txt
View file @
bc7ab904
...
...
@@ -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
...
...
kws/ota/ota_pal_psa/ota_pal.c
View file @
bc7ab904
...
...
@@ -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
);
}
...
...
kws/source/main_ns.c
View file @
bc7ab904
...
...
@@ -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 [%
l
d]
\r\n
"
,
log_initialized
);
return
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment