This commit introduces a major refactoring of the project structure to align with Zephyr's recommended multi-application and library organization. Key changes include: - Relocation of custom modules from 'software/modules/' to 'software/lib/'. - Introduction of a central 'software/CMakeLists.txt' to manage application and library subdirectories. - Creation of new Kconfig files for 'software/' and 'software/apps/slave_node/' to define project-wide and application-specific configurations. - Removal of the 'gateway' and 'stm32g431_tests' applications. - Removal of 'shell_modbus.c' and 'shell_system.c' from 'slave_node' application's direct source files, indicating a shift towards library-based shell commands. - Updates to 'software/apps/slave_node/CMakeLists.txt', 'prj.conf', and 'boards/bluepill_f103rb.conf' to reflect the new structure and dependencies.
24 lines
415 B
Plaintext
24 lines
415 B
Plaintext
# Enable Console and printk for logging
|
|
CONFIG_CONSOLE=y
|
|
CONFIG_LOG=y
|
|
|
|
# Enable Shell
|
|
CONFIG_SHELL=y
|
|
CONFIG_REBOOT=y
|
|
|
|
# Enable Settings Subsystem
|
|
CONFIG_SETTINGS=y
|
|
CONFIG_SETTINGS_NVS=y
|
|
CONFIG_NVS=y
|
|
CONFIG_FLASH=y
|
|
CONFIG_FLASH_MAP=y
|
|
CONFIG_FLASH_PAGE_LAYOUT=y
|
|
CONFIG_SETTINGS_LOG_LEVEL_DBG=y
|
|
|
|
# Config modbus
|
|
CONFIG_UART_INTERRUPT_DRIVEN=y
|
|
CONFIG_MODBUS=y
|
|
CONFIG_MODBUS_ROLE_SERVER=y
|
|
CONFIG_MODBUS_BUFFER_SIZE=256
|
|
|