feat/957-single-channel-mode #32

Merged
ismail merged 7 commits from feat/957-single-channel-mode into dev 2025-08-14 08:50:36 +02:00
Owner

A single-channel mode has been added for user convenience and to reduce the memory footprint.

The one large source file (relay_chn.c) has broken the component down into the following modules:

  • Separation of public and private code
  • *types and *defs
  • public relay_chn API
  • *adapter
  • *output
  • *run_info
  • *core
  • *ctl (control)
  • *tilt

This further modularisation of the component will prevent the creation of a single, huge source file and facilitate unit testing.

TICKET-1030

A single-channel mode has been added for user convenience and to reduce the memory footprint. The one large source file ([relay_chn.c](/blob/1776c81c8d43dd688e25d1729278d877edf79605/src/relay_chn.c)) has broken the component down into the following modules: - Separation of public and private code - *types and *defs - public relay_chn API - *adapter - *output - *run_info - *core - *ctl (control) - *tilt This further modularisation of the component will prevent the creation of a single, huge source file and facilitate unit testing. TICKET-1030
ismail added the enhancement label 2025-08-14 08:41:58 +02:00
ismail self-assigned this 2025-08-14 08:41:58 +02:00
ismail added 7 commits 2025-08-14 08:41:58 +02:00
Reviewed-on: https://dev.kozmotronik.com.tr/gitea/KozmotronikTech/relay_chn/pulls/26
Reviewed-on: KozmotronikTech/relay_chn_component#28
Reviewed-on: #31
The addition of a single-channel mode implied further modularisation of the component. This commit has broken the component down into the following modules to avoid a huge single source file and to make unit testing easier.

The modules:

- Separation of public and private code
- *types and *defs
- public relay_chn API
- *adapter
- *output
- *run_info
- *core
- *ctl (control)
- *tilt

Closes #957.
Refactor relay channel component to support single and multi-channel modes; update CMake configuration and enhance API documentation.
- Created `test_relay_chn_tilt_multi.c` and `test_relay_chn_tilt_single.c` to implement comprehensive tests for the tilt functionality of relay channels, covering various scenarios including transitions between states and sensitivity settings.
- Introduced a new partition table in `partitionTable.csv` for proper memory management.
- Updated `sdkconfig` to set the relay channel count to 1 for single channel testing and adjusted related configurations.
- Added default configuration file `sdkconfig.defaults.single` for streamlined testing setup.
Author
Owner

The merge from remote-tracking branch 'origin/main' at f1cda4531d was done because the latest tag (0.5.0) was unreachable from HEAD. Because of this, when I ran git describe --tags, it returned the previous tag, which is 0.4.0.

The merge from remote-tracking branch 'origin/main' at f1cda4531d was done because the latest tag (`0.5.0`) was unreachable from HEAD. Because of this, when I ran `git describe --tags`, it returned the previous tag, which is `0.4.0`.
ismail merged commit b29768edad into dev 2025-08-14 08:50:36 +02:00
Sign in to join this conversation.