| 152 | } |
| 153 | |
| 154 | static void start_motor(void) |
| 155 | { |
| 156 | if (!motor_on) |
| 157 | { |
| 158 | set_drive_flags(¤t_drive_flags); |
| 159 | MOTOR_REG_Write(1); |
| 160 | CyDelay(1000); |
| 161 | homed = false; |
| 162 | } |
| 163 | |
| 164 | motor_on_time = clock; |
| 165 | motor_on = true; |
| 166 | CyWdtClear(); |
| 167 | } |
| 168 | |
| 169 | static void stop_motor(void) |
| 170 | { |
no test coverage detected