File tree Expand file tree Collapse file tree 5 files changed +17
-13
lines changed
components/FreeRTOS-Libraries-Integration-Tests
demo_tasks/ota_over_mqtt_demo Expand file tree Collapse file tree 5 files changed +17
-13
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ include(${CMAKE_CURRENT_LIST_DIR}/FreeRTOS-Libraries-Integration-Tests/src/trans
88include (${CMAKE_CURRENT_LIST_DIR} /FreeRTOS-Libraries-Integration-Tests/src/mqtt_test.cmake)
99
1010# This gives OTA_PAL_TEST_SOURCES, and OTA_PAL_TEST_INCLUDE_DIRS
11- include (${CMAKE_CURRENT_LIST_DIR} /FreeRTOS-Libraries-Integration-Tests/src/ota_pal_test.cmake)
11+ # include(${CMAKE_CURRENT_LIST_DIR}/FreeRTOS-Libraries-Integration-Tests/src/ota_pal_test.cmake)
1212
1313# This gives PKCS11_TEST_SOURCES, and PKCS11_TEST_INCLUDE_DIRS
1414include (${CMAKE_CURRENT_LIST_DIR} /FreeRTOS-Libraries-Integration-Tests/src/pkcs11_test.cmake)
Original file line number Diff line number Diff line change @@ -44,14 +44,6 @@ menu "Featured FreeRTOS IoT Integration"
4444 bool "Transport Interface Test."
4545 default n
4646
47- config GRI_OTA_PAL_TEST_ENABLED
48- bool "OTA PAL Test."
49- default n
50-
51- config GRI_OTA_E2E_TEST_ENABLED
52- bool "OTA end-to-end Test."
53- default n
54-
5547 config GRI_CORE_PKCS11_TEST_ENABLED
5648 bool "CorePKCS#11 Test."
5749 default n
@@ -211,6 +203,10 @@ menu "Featured FreeRTOS IoT Integration"
211203 int "OTA demo task stack size."
212204 default 3072
213205
206+ config GRI_OTA_MAX_NUM_DATA_BUFFERS
207+ int "OTA buffer number."
208+ default 2
209+
214210 endmenu # OTA demo configurations
215211 endmenu # Qualification Test Configurations
216212
@@ -463,6 +459,10 @@ menu "Featured FreeRTOS IoT Integration"
463459 int "Application version build."
464460 default 0
465461
462+ config GRI_OTA_MAX_NUM_DATA_BUFFERS
463+ int "OTA buffer number."
464+ default 2
465+
466466 endmenu # OTA demo configurations
467467
468468endmenu # Golden Reference Integration
Original file line number Diff line number Diff line change 167167#define MAX_THING_NAME_SIZE 128U
168168
169169#define MAX_JOB_ID_LENGTH ( 64U )
170- #define MAX_NUM_OF_OTA_DATA_BUFFERS ( 2U )
171170
172171/**
173172 * @brief Used to clear bits in a task's notification value.
@@ -898,7 +897,7 @@ static uint16_t getFreeOTABuffers( void )
898897
899898 if ( xSemaphoreTake ( bufferSemaphore , portMAX_DELAY ) == pdTRUE )
900899 {
901- for ( ulIndex = 0 ; ulIndex < MAX_NUM_OF_OTA_DATA_BUFFERS ; ulIndex ++ )
900+ for ( ulIndex = 0 ; ulIndex < otaconfigMAX_NUM_OTA_DATA_BUFFERS ; ulIndex ++ )
902901 {
903902 if ( dataBuffers [ ulIndex ].bufferUsed == false )
904903 {
@@ -940,7 +939,7 @@ static OtaDataEvent_t * getOtaDataEventBuffer( void )
940939
941940 if ( xSemaphoreTake ( bufferSemaphore , portMAX_DELAY ) == pdTRUE )
942941 {
943- for ( ulIndex = 0 ; ulIndex < MAX_NUM_OF_OTA_DATA_BUFFERS ; ulIndex ++ )
942+ for ( ulIndex = 0 ; ulIndex < otaconfigMAX_NUM_OTA_DATA_BUFFERS ; ulIndex ++ )
944943 {
945944 if ( dataBuffers [ ulIndex ].bufferUsed == false )
946945 {
Original file line number Diff line number Diff line change 8989 */
9090#define otademoconfigDEMO_TASK_STACK_SIZE ( CONFIG_GRI_OTA_DEMO_DEMO_TASK_STACK_SIZE )
9191
92+ /**
93+ * @brief The number of OTA data buffer.
94+ */
95+ #define otaconfigMAX_NUM_OTA_DATA_BUFFERS ( CONFIG_GRI_OTA_MAX_NUM_DATA_BUFFERS )
96+
9297/**
9398 * @brief The version for the firmware which is running. OTA agent uses this
9499 * version number to perform anti-rollback validation. The firmware version for the
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ CONFIG_LWIP_MAX_SOCKETS=8
4040# AWS OTA
4141CONFIG_LOG2_FILE_BLOCK_SIZE=12
4242CONFIG_MAX_NUM_BLOCKS_REQUEST=8
43- CONFIG_MAX_NUM_OTA_DATA_BUFFERS=8
43+ CONFIG_GRI_OTA_MAX_NUM_DATA_BUFFERS=2
4444CONFIG_ALLOW_DOWNGRADE=0
4545CONFIG_OTA_DATA_OVER_MQTT=y
4646# CONFIG_OTA_DATA_OVER_HTTP is not set
You can’t perform that action at this time.
0 commit comments