committing source code changes for main.hex commit that was just made axing usbFunctionRead
This commit is contained in:
parent
7aab299b66
commit
14eddd74ab
|
|
@ -139,11 +139,11 @@ USB_PUBLIC usbMsgLen_t usbFunctionSetup(uchar data[8]) {
|
||||||
* In order to get usbFunctionRead() called, define USB_CFG_IMPLEMENT_FN_READ
|
* In order to get usbFunctionRead() called, define USB_CFG_IMPLEMENT_FN_READ
|
||||||
* to 1 in usbconfig.h and return 0xff in usbFunctionSetup()..
|
* to 1 in usbconfig.h and return 0xff in usbFunctionSetup()..
|
||||||
*/
|
*/
|
||||||
USB_PUBLIC uchar usbFunctionRead(uchar *data, uchar len) {
|
//USB_PUBLIC uchar usbFunctionRead(uchar *data, uchar len) {
|
||||||
//this function should only get called if usbFunctionSetup returns USB_NO_MSG
|
// //this function should only get called if usbFunctionSetup returns USB_NO_MSG
|
||||||
// data[0] = 0xAA;
|
//// data[0] = 0xAA;
|
||||||
return len;
|
// return len;
|
||||||
}
|
//}
|
||||||
|
|
||||||
|
|
||||||
//USB_PUBLIC uchar usbFunctionWrite(uchar *data, uchar len);
|
//USB_PUBLIC uchar usbFunctionWrite(uchar *data, uchar len);
|
||||||
|
|
|
||||||
|
|
@ -128,7 +128,7 @@ section at the end of this file).
|
||||||
* transfers. Set it to 0 if you don't need it and want to save a couple of
|
* transfers. Set it to 0 if you don't need it and want to save a couple of
|
||||||
* bytes.
|
* bytes.
|
||||||
*/
|
*/
|
||||||
#define USB_CFG_IMPLEMENT_FN_READ 1
|
#define USB_CFG_IMPLEMENT_FN_READ 0
|
||||||
/* Set this to 1 if you need to send control replies which are generated
|
/* Set this to 1 if you need to send control replies which are generated
|
||||||
* "on the fly" when usbFunctionRead() is called. If you only want to send
|
* "on the fly" when usbFunctionRead() is called. If you only want to send
|
||||||
* data from a static buffer, set it to 0 and return the data from
|
* data from a static buffer, set it to 0 and return the data from
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue