mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-05 02:39:57 +02:00
Add Kostal RS485 protocol
This commit is contained in:
parent
c95fa88bc7
commit
cbdb2392d9
6 changed files with 250 additions and 0 deletions
|
@ -209,6 +209,9 @@ void core_loop(void* task_time_us) {
|
|||
#ifdef DUAL_CAN
|
||||
receive_can_addonMCP2515(); // Receive CAN messages on add-on MCP2515 chip
|
||||
#endif
|
||||
#ifdef RS485_INVERTER_SELECTED
|
||||
receive_RS485(); // Process serial2 RS485 interface
|
||||
#endif
|
||||
#if defined(SERIAL_LINK_RECEIVER) || defined(SERIAL_LINK_TRANSMITTER)
|
||||
runSerialDataLink();
|
||||
#endif
|
||||
|
@ -768,6 +771,9 @@ void update_values_inverter() {
|
|||
#ifdef MODBUS_INVERTER_SELECTED
|
||||
update_modbus_registers_inverter();
|
||||
#endif
|
||||
#ifdef RS485_INVERTER_SELECTED
|
||||
update_RS485_registers_inverter();
|
||||
#endif
|
||||
}
|
||||
|
||||
#if defined(SERIAL_LINK_RECEIVER) || defined(SERIAL_LINK_TRANSMITTER)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue