General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
-
eric_j
Post
by eric_j » Thu Jan 24, 2008 10:32 pm
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?
-
christian
- Objective Development
- Posts: 1443
- Joined: Thu Nov 09, 2006 11:46 am
Post
by christian » Tue Jan 29, 2008 1:06 pm
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.