90 |
|
// Icon address (Mac address space, set by PatchROM()) |
91 |
|
uint32 DiskIconAddr; |
92 |
|
|
93 |
– |
// Number of ticks between checks for disk insertion |
94 |
– |
const int driver_delay = 120; |
95 |
– |
|
93 |
|
// Flag: Control(accRun) has been called, interrupt routine is now active |
94 |
|
static bool acc_run_called = false; |
95 |
|
|
492 |
|
|
493 |
|
|
494 |
|
/* |
495 |
< |
* Driver interrupt routine - check for volumes to be mounted |
495 |
> |
* Driver interrupt routine (1Hz) - check for volumes to be mounted |
496 |
|
*/ |
497 |
|
|
498 |
|
void DiskInterrupt(void) |
499 |
|
{ |
503 |
– |
static int tick_count = 0; |
500 |
|
if (!acc_run_called) |
501 |
|
return; |
502 |
|
|
503 |
< |
tick_count++; |
508 |
< |
if (tick_count > driver_delay) { |
509 |
< |
tick_count = 0; |
510 |
< |
mount_mountable_volumes(); |
511 |
< |
} |
503 |
> |
mount_mountable_volumes(); |
504 |
|
} |