MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / start_motor

Function start_motor

FluxEngine.cydsn/main.c:154–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154static void start_motor(void)
155{
156 if (!motor_on)
157 {
158 set_drive_flags(&current_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
169static void stop_motor(void)
170{

Callers 3

seek_toFunction · 0.85
cmd_measure_speedFunction · 0.85
detect_drivesFunction · 0.85

Calls 1

set_drive_flagsFunction · 0.85

Tested by

no test coverage detected