How do I set the usb audio code up for usb asynchronous transfers.
Do I just have to change bmAttributes
USB_ENDPOINT_TYPE_ISOCHRONOUS,
to
USB_ENDPOINT_SYNC_ASYNCHRONOUS
or is it more complexed than that.
>- At USB_SOF_Event() (usbuser.c), > - - read this timer count. > - - Calculate this value
I have been goolge but have not found out how to do this yet, I had a go at it.
uint32_t current_timer_count
uint32_t last_timer_count
#if USB_SOF_EVENT void USB_SOF_Event (void) { #if TIMER1_IRQHandler > 0 current_timer_count = TIMER1 else if current_timer_count = TIMER1 TIMER1 = last_timer_count
#if USB_SOF_EVENT void USB_SOF_Event (void) { #if TIMER1_IRQHandler > 0 current_timer_count = TIMER1 else if #if TIMER1_IRQHandler < 1000 TIMER1 = last_timer_count LPC_TIM1->MR0 = 1000;