General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
When receiving data from the host using the control endpoint, it did not work until I put in a statement that sets the local variable 'flags' to 0 so that the usbFunctionWrite is actually called. How is this intended to be done?
- Objective Development
- Posts: 1443
- Joined: Thu Nov 09, 2006 11:46 am
You must return -1 (0xff) in usbFunctionSetup() to inform the driver that you want to receive the data via usbFunctionWrite(). See the documentation in usbdrv.h.