From 5e26f02da788aac2264e5d2bf66ee9329b5f8274 Mon Sep 17 00:00:00 2001 From: Ross Owen Date: Mon, 20 Jan 2014 18:16:36 +0000 Subject: [PATCH] AUDIO_PLL_LOCK_DELAY renamed MCLK_STABILITY_DELAY and used in ep0 SF change request. --- module_usb_audio/devicedefines.h | 4 ++-- module_usb_audio/endpoint0/audiorequests.xc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/module_usb_audio/devicedefines.h b/module_usb_audio/devicedefines.h index 6c07f982..57e00175 100644 --- a/module_usb_audio/devicedefines.h +++ b/module_usb_audio/devicedefines.h @@ -210,8 +210,8 @@ #endif /* The number of clock ticks to wait for the audio PLL to lock */ -#ifndef AUDIO_PLL_LOCK_DELAY -#define AUDIO_PLL_LOCK_DELAY (40000000) +#ifndef MCLK_STABILITY_DELAY +#define MCLK_STABILITY_DELAY (40000000) #endif /* Vendor String */ diff --git a/module_usb_audio/endpoint0/audiorequests.xc b/module_usb_audio/endpoint0/audiorequests.xc index 57c838d8..ebd93690 100644 --- a/module_usb_audio/endpoint0/audiorequests.xc +++ b/module_usb_audio/endpoint0/audiorequests.xc @@ -318,7 +318,7 @@ int AudioClassRequests_2(XUD_ep ep0_out, XUD_ep ep0_in, USB_SetupPacket_t &sp, c timer t; unsigned time; t :> time; - t when timerafter(time+5000000+40000000):> void; + t when timerafter(time+5000000+MCLK_STABILITY_DELAY):> void; } } @@ -1049,7 +1049,7 @@ int AudioEndpointRequests_1(XUD_ep ep0_out, XUD_ep ep0_in, USB_SetupPacket_t &sp timer t; unsigned time; t :> time; - t when timerafter(time+50000000+40000000):> void; + t when timerafter(time+50000000+MCLK_STABILTY_DELAY):> void; } } }