@@ -165,7 +165,7 @@ static void update_amiga_id(struct drive *drv, bool_t amiga_hd_id)
165
165
drive_change_pin (& drive , pin_34 , TRUE);
166
166
} else {
167
167
/* Do nothing here. Pin 34 will be updated by IRQ_MOTOR() via
168
- * motor_chgrst_{insert,eject} (). */
168
+ * motor_chgrst_update_status (). */
169
169
IRQ_global_enable ();
170
170
}
171
171
}
@@ -204,7 +204,7 @@ void floppy_cancel(void)
204
204
index .fake_fired = FALSE;
205
205
barrier (); /* /then/ cancel index.timer_deassert */
206
206
timer_cancel (& index .timer_deassert );
207
- motor_chgrst_eject (drv );
207
+ motor_chgrst_update_status (drv );
208
208
209
209
/* Set outputs for empty drive. */
210
210
barrier ();
@@ -329,7 +329,7 @@ void floppy_init(void)
329
329
timer_init (& index .timer , index_assert , NULL );
330
330
timer_init (& index .timer_deassert , index_deassert , NULL );
331
331
332
- motor_chgrst_eject ( drv );
332
+ motor_chgrst_setup_exti ( );
333
333
}
334
334
335
335
void floppy_insert (unsigned int unit , struct slot * slot )
@@ -354,7 +354,7 @@ void floppy_insert(unsigned int unit, struct slot *slot)
354
354
drive_change_output (drv , outp_wrprot , FALSE);
355
355
barrier ();
356
356
drv -> inserted = TRUE;
357
- motor_chgrst_insert (drv ); /* update RDY + motor state */
357
+ motor_chgrst_update_status (drv ); /* update RDY + motor state */
358
358
if (ff_cfg .chgrst <= CHGRST_delay (15 ))
359
359
timer_set (& drv -> chgrst_timer , time_now () + ff_cfg .chgrst * time_ms (500 ));
360
360
}
0 commit comments