clang
This commit is contained in:
parent
0174d0c3c6
commit
0ae7eefd06
2 changed files with 8 additions and 6 deletions
|
|
@ -278,7 +278,8 @@ uint32_t Adafruit_Floppy::capture_track(uint8_t *pulses, uint32_t max_pulses) {
|
|||
// ahh a L to H transition
|
||||
if (!last_index_state && index_state) {
|
||||
index_transitions++;
|
||||
if (index_transitions == 2) // and its the second one, so we're done with this track!
|
||||
if (index_transitions ==
|
||||
2) // and its the second one, so we're done with this track!
|
||||
break;
|
||||
}
|
||||
last_index_state = index_state;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,8 @@
|
|||
#define STEP_OUT HIGH
|
||||
#define STEP_IN LOW
|
||||
#define MAX_FLUX_PULSE_PER_TRACK \
|
||||
(uint32_t)(500000UL / 5 * 1.5) // 500khz / 5 hz per track rotation, 1.5 rotations
|
||||
(uint32_t)(500000UL / 5 * \
|
||||
1.5) // 500khz / 5 hz per track rotation, 1.5 rotations
|
||||
|
||||
#define BUSTYPE_IBMPC 1
|
||||
#define BUSTYPE_SHUGART 2
|
||||
|
|
@ -42,10 +43,10 @@ public:
|
|||
|
||||
int8_t led_pin = LED_BUILTIN; ///< Debug LED output for tracing
|
||||
|
||||
uint16_t select_delay_us = 10; ///< delay after drive select (usecs)
|
||||
uint16_t step_delay_us = 10000; ///< delay between head steps (usecs)
|
||||
uint16_t settle_delay_ms = 15; ///< settle delay after seek (msecs)
|
||||
uint16_t motor_delay_ms = 1000; ///< delay after motor on (msecs)
|
||||
uint16_t select_delay_us = 10; ///< delay after drive select (usecs)
|
||||
uint16_t step_delay_us = 10000; ///< delay between head steps (usecs)
|
||||
uint16_t settle_delay_ms = 15; ///< settle delay after seek (msecs)
|
||||
uint16_t motor_delay_ms = 1000; ///< delay after motor on (msecs)
|
||||
uint16_t watchdog_delay_ms =
|
||||
1000; ///< quiescent time until drives reset (msecs)
|
||||
uint8_t bus_type = BUSTYPE_IBMPC; ///< what kind of floppy drive we're using
|
||||
|
|
|
|||
Loading…
Reference in a new issue