Hi,
I am using AT91SAM7x-ek eval board with Keil uVision 3.55a. I am trying to use bulk transfer and I am hoping to port "memory" example from KEil/ARM/Boards/Atmel/AT91SAM7X-EK/USB directory. For now I am only trying to make sure I understand how it works. I want to use Endpoint 2 for IN and OUT. I change endpoint descriptors to 2 for both IN and OUT. I also wanted a vendor specific class so I use 0xFF for that. I wrote a code that would turn on LED3 in this function:
void USB_EndPoint2 (DWORD event) { AT91D_BASE_PIO_LED->PIO_CODR = AT91B_LED3; /* Turn On Read LED */ }
IS this the right spot to write my user code? I believe that this function should be called if there is an interrupt, but I don't know how to make sure.
Thanks Mario