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

Function home

FluxEngine.cydsn/main.c:239–251  ·  view source on GitHub ↗

returns true if it looks like a drive is attached */

Source from the content-addressed store, hash-verified

237
238/* returns true if it looks like a drive is attached */
239static bool home(void)
240{
241 for (int i=0; i<100; i++)
242 {
243 /* Don't keep stepping forever, because if a drive's
244 * not connected bad things happen. */
245 if (TRACK0_REG_Read())
246 return true;
247 step(STEP_TOWARDS0);
248 }
249
250 return false;
251}
252
253static void seek_to(int track)
254{

Callers 3

seek_toFunction · 0.85
read_input_voltagesFunction · 0.85
detect_drivesFunction · 0.85

Calls 1

stepFunction · 0.85

Tested by

no test coverage detected