mirror of
https://gitea.ecohim.ru:3000/RS485_Relay/RS485_Relay2_fw.git
synced 2025-08-05 23:56:37 +03:00
23 lines
380 B
C
23 lines
380 B
C
/*
|
|
* board_logic.h
|
|
*
|
|
*/
|
|
|
|
#ifndef BOARD_LOGIC_H_
|
|
#define BOARD_LOGIC_H_
|
|
|
|
#define MODBUS_FIRMWARE_VERSION ( /*major*/ 10 + /*minor*/ 0 * 0x100)
|
|
#define MODBUS_BOARD_TYPE (8) //Relay Module board ID
|
|
|
|
#define REL_MAIN_BIT (1u<<0)
|
|
#define REL_AUX_BIT (1u<<1)
|
|
|
|
#define MOTOR_MIN 0
|
|
#define MOTOR_MAX 255
|
|
|
|
|
|
void loop_iterate();
|
|
void timer1_ovf_isr(void);
|
|
|
|
#endif
|