Skip to content

The firmware requires both Read and Write callbacks regardless of HIDUART #37

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions firmware/usbconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,20 +138,12 @@ section at the end of this file).
* The value is in milliamperes. [It will be divided by two since USB
* communicates power requirements in units of 2 mA.]
*/
#ifdef __HIDUART__
#define USB_CFG_IMPLEMENT_FN_WRITE 1
#else
#define USB_CFG_IMPLEMENT_FN_WRITE 0
#endif
/* Set this to 1 if you want usbFunctionWrite() to be called for control-out
* transfers. Set it to 0 if you don't need it and want to save a couple of
* bytes.
*/
#ifdef __HIDUART__
#define USB_CFG_IMPLEMENT_FN_READ 1
#else
#define USB_CFG_IMPLEMENT_FN_READ 0
#endif
/* 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
* data from a static buffer, set it to 0 and return the data from
Expand Down