| 226 | } |
| 227 | |
| 228 | static 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 */ |
| 239 | static bool home(void) |
no outgoing calls
no test coverage detected