Adds a new `adc_sensor` library to abstract reading analog values from ADC channels. The output of this library is currently simulated. This library is now used by the `modbus_server` to read the motor current and the main supply voltage, replacing the previous implementation. This change improves modularity by centralizing ADC-related code into a dedicated module. The build system has been updated to include the new library.
6 lines
319 B
CMake
6 lines
319 B
CMake
add_subdirectory_ifdef(CONFIG_ADC_SENSOR adc_sensor)
|
|
add_subdirectory_ifdef(CONFIG_LIB_FWU fwu)
|
|
add_subdirectory_ifdef(CONFIG_LIB_MODBUS_SERVER modbus_server)
|
|
add_subdirectory_ifdef(CONFIG_LIB_VALVE valve)
|
|
add_subdirectory_ifdef(CONFIG_SHELL_SYSTEM shell_system)
|
|
add_subdirectory_ifdef(CONFIG_SHELL_MODBUS shell_modbus) |