Skip to content

Commit 2ad260f

Browse files
app: main + fota: Split out FOTA controller logic into separate module
Splits out the FOTA controller logic from the main application into a separate module, responsible for managing the FOTA state machine. The main application now only triggers FOTA polls and reacts to high-level FOTA outcomes published by the controller, without needing to manage the details of the FOTA process. Signed-off-by: Trond F. Christiansen <trond.christiansen@nordicsemi.no>
1 parent 3fd73d0 commit 2ad260f

16 files changed

Lines changed: 1060 additions & 355 deletions

File tree

app/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@ add_subdirectory_ifdef(CONFIG_APP_LED src/modules/led)
2828
add_subdirectory_ifdef(CONFIG_APP_LOCATION src/modules/location)
2929
add_subdirectory_ifdef(CONFIG_APP_CLOUD src/modules/cloud)
3030
add_subdirectory_ifdef(CONFIG_APP_FOTA src/modules/fota)
31+
add_subdirectory_ifdef(CONFIG_APP_FOTA src/modules/fota_controller)
3132
add_subdirectory_ifdef(CONFIG_APP_STORAGE src/modules/storage)

app/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ rsource "src/modules/cloud/Kconfig.cloud"
1313
rsource "src/modules/location/Kconfig.location"
1414
rsource "src/modules/led/Kconfig.led"
1515
rsource "src/modules/fota/Kconfig.fota"
16+
rsource "src/modules/fota_controller/Kconfig.fota_controller"
1617
rsource "src/modules/environmental/Kconfig.environmental"
1718
rsource "src/modules/button/Kconfig.button"
1819
rsource "src/modules/storage/Kconfig.storage"

app/prj.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ CONFIG_APP_STORAGE_LOG_LEVEL_DBG=y
242242

243243
# Task Watchdog
244244
CONFIG_TASK_WDT=y
245-
CONFIG_TASK_WDT_CHANNELS=8
245+
CONFIG_TASK_WDT_CHANNELS=9
246246
CONFIG_TASK_WDT_MIN_TIMEOUT=10000
247247

248248
# Device power management

0 commit comments

Comments
 (0)