forked from PAWPAW-Mirror/lib_xua
MCLK_STABILITY_DELAY renamed and updated
This commit is contained in:
@@ -209,9 +209,10 @@
|
|||||||
#error Bad DEFAULT_MCLK_FREQ
|
#error Bad DEFAULT_MCLK_FREQ
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* The number of clock ticks to wait for the audio PLL to lock */
|
/* The number of clock ticks to wait for the audio feeback to stabalise */
|
||||||
#ifndef MCLK_STABILITY_DELAY
|
#ifndef FEEDBACK_STABILITY_DELAY
|
||||||
#define MCLK_STABILITY_DELAY (40000000)
|
/* Note, feedback always counts 128 SOFs (16ms @ HS, 128ms @ FS) */
|
||||||
|
#define FEEDBACK_STABILITY_DELAY (20000000)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Vendor String */
|
/* Vendor String */
|
||||||
|
|||||||
@@ -318,7 +318,7 @@ int AudioClassRequests_2(XUD_ep ep0_out, XUD_ep ep0_in, USB_SetupPacket_t &sp, c
|
|||||||
timer t;
|
timer t;
|
||||||
unsigned time;
|
unsigned time;
|
||||||
t :> time;
|
t :> time;
|
||||||
t when timerafter(time+5000000+MCLK_STABILITY_DELAY):> void;
|
t when timerafter(time+FEEDBACK_STABILITY_DELAY):> void;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1049,7 +1049,7 @@ int AudioEndpointRequests_1(XUD_ep ep0_out, XUD_ep ep0_in, USB_SetupPacket_t &sp
|
|||||||
timer t;
|
timer t;
|
||||||
unsigned time;
|
unsigned time;
|
||||||
t :> time;
|
t :> time;
|
||||||
t when timerafter(time+50000000+MCLK_STABILTY_DELAY):> void;
|
t when timerafter(time+FEEDBACK_STABILTY_DELAY):> void;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user