AnsweredAssumed Answered

Interrupt driven USB BF527

Question asked by Sean2011 on May 5, 2011
Latest reply on May 5, 2011 by PrasanthR

Product: Blackfin BF527

Software: Visual DSP++ 5.0 Update 8



My application uses USB based on the Bulk Loopback example provided with VisualDSP++ and I would like to make it interrupt driven. The examples provided with VisualDSP++ all seem to use a main loop which hangs  on a usb read function. At present the main loop contains:

        /* wait for a USB command block from the host indicating what function we should perform */
        Result = usb_Read(DevHandle, ADI_DEV_1D, (ADI_DEV_BUFFER *)&UsbcbBuffer, TRUE);

as used in the Blackfin examples.


I would like to make the USB receive function interrupt driven so I call a function when data is received by the device. What is the best way of doing this?