This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

usb asynchronous

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.

Parents
  • >- Run another timer on PCLK in free run

    Is this what you mean by free run, just leaving it blank? What is this (VPB_CLOCK) you talk of.

    void TIMER1_IRQHandler(void)
    {
    
    LPC_TIM1->IR = 1;                         /* Clear Interrupt Flag */
    
    
    
    
    LPC_SC->PCONP |= 1 << 2;     // Power on Timer'
    
      LPC_TIM1->MR0 = pclk/DATA_FREQ - 1;   /* TC0 Match Value 0 */
      LPC_TIM1->MCR = 3;                                    /* TCO Interrupt and Reset on MR0 */
      LPC_TIM1->TCR = 1;                                    /* TC0 Enable */
      NVIC_EnableIRQ(TIMER0_IRQn);
    
    
       }
    

Reply
  • >- Run another timer on PCLK in free run

    Is this what you mean by free run, just leaving it blank? What is this (VPB_CLOCK) you talk of.

    void TIMER1_IRQHandler(void)
    {
    
    LPC_TIM1->IR = 1;                         /* Clear Interrupt Flag */
    
    
    
    
    LPC_SC->PCONP |= 1 << 2;     // Power on Timer'
    
      LPC_TIM1->MR0 = pclk/DATA_FREQ - 1;   /* TC0 Match Value 0 */
      LPC_TIM1->MCR = 3;                                    /* TCO Interrupt and Reset on MR0 */
      LPC_TIM1->TCR = 1;                                    /* TC0 Enable */
      NVIC_EnableIRQ(TIMER0_IRQn);
    
    
       }
    

Children
No data