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

Function step

FluxEngine.cydsn/main.c:228–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228static void step(int dir)
229{
230 STEP_REG_Write(dir); /* step high */
231 CyDelayUs(6);
232 STEP_REG_Write(dir | 2); /* step low */
233 CyDelayUs(6);
234 STEP_REG_Write(dir); /* step high again, drive moves now */
235 CyDelay(STEP_INTERVAL_TIME);
236}
237
238/* returns true if it looks like a drive is attached */
239static bool home(void)

Callers 3

homeFunction · 0.85
seek_toFunction · 0.85
read_input_voltagesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected