We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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;