diff --git a/.cproject b/.cproject
index c77a126..a0ef035 100644
--- a/.cproject
+++ b/.cproject
@@ -22,6 +22,7 @@
+
@@ -94,25 +95,25 @@
-
-
-
-
-
+
+
+
+
+
-
+
-
+
-
-
-
+
+
-
-
-
+
+
-
+
@@ -167,4 +168,5 @@
+
\ No newline at end of file
diff --git a/Core/Inc/board_logic.h b/Core/Inc/board_logic.h
index 82da4d6..597c6c7 100644
--- a/Core/Inc/board_logic.h
+++ b/Core/Inc/board_logic.h
@@ -12,6 +12,10 @@
#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);
diff --git a/Core/Src/board_logic.c b/Core/Src/board_logic.c
index 6205230..4fa9742 100644
--- a/Core/Src/board_logic.c
+++ b/Core/Src/board_logic.c
@@ -12,6 +12,7 @@
#define BOARD_DESC_LEN (23)
+extern TIM_HandleTypeDef htim3;
static const char board_description[BOARD_DESC_LEN] = "RS485 Relay Module v1";
extern uint16_t tranfer_errors_count;
extern uint16_t last_rx_time;
@@ -56,17 +57,9 @@ void loop_iterate()
REL_AUX_OFF;
LED_AUX_OFF;
}
- /*
- if(motor_pwm>MOTOR_MAX)motor_pwm=MOTOR_MAX;
- if(motor_pwmMOTOR_MAX)motor_pwm=MOTOR_MAX;
+ if(motor_pwm