feat(nvs): Add NVS support for relay channel persistence (#1074) #33

Merged
ismail merged 4 commits from feat/1074-add-nvs-storage into dev 2025-08-19 17:55:12 +02:00
Owner

Add NVS support for relay channel configuration persistence, perform minor refactoring, and add a new utility script.
TICKET-1074

To ensure relay channel configuration persists across reboots using NVS and simplify initialization logic for maintainability.

Improve test coverage with dedicated NVS storage tests and updated test tags to validate persistence functionality.

Add NVS support for relay channel configuration persistence, perform minor refactoring, and add a new utility script. TICKET-1074 To ensure relay channel configuration persists across reboots using NVS and simplify initialization logic for maintainability. Improve test coverage with dedicated NVS storage tests and updated test tags to validate persistence functionality.
ismail added 4 commits 2025-08-19 17:49:56 +02:00
Unignore .vscode folder and add necessary configuration files for a
synced development environment.
- Introduced NVS configuration options in Kconfig.
- Implemented NVS initialization and deinitialization in relay_chn_core.
- Added functions for storing and retrieving relay channel direction and tilt sensitivity in NVS.
- Updated relay_chn_tilt and relay_chn_output to utilize NVS for state management.
- Created relay_chn_nvs.c and relay_chn_nvs.h for NVS-related functionalities.

Closes #1074.
- Removed unnecessary calls to relay_chn_create and g_is_component_initialized in multiple test cases across test_relay_chn_core_single.c, test_relay_chn_listener_multi.c, and test_relay_chn_listener_single.c.
- Introduced new test files for NVS functionality: test_relay_chn_nvs_multi.c and test_relay_chn_nvs_single.c, covering initialization, direction setting, invalid parameters, and erase operations.
- Updated partition table configuration to support NVS storage, including the addition of a new partition file part_nvs.csv.
- Adjusted sdkconfig files to enable NVS support and configure custom partition settings for relay channels.
- Added new utility script run_tests_all_cfgs.sh to run tests for all configurations and with test tag support.
- Updated run_tests.sh to add the new test tag for NVS unit tests.
ismail added the Kind/Feature label 2025-08-19 17:54:31 +02:00
ismail self-assigned this 2025-08-19 17:54:49 +02:00
ismail merged commit dc2aa93d2d into dev 2025-08-19 17:55:12 +02:00
Sign in to join this conversation.