1
0
Fork 0

Updated V-USB template to allow usbFunctionWriteOut (#8634)

This commit is contained in:
yiancar 2020-04-01 17:11:24 +01:00 committed by GitHub
parent 2eb6cb0dfd
commit c217186bea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 3 deletions

View file

@ -123,7 +123,7 @@ section at the end of this file).
* 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
* usbFunctionSetup(). This saves a couple of bytes. * usbFunctionSetup(). This saves a couple of bytes.
*/ */
#define USB_CFG_IMPLEMENT_FN_WRITEOUT 0 #define USB_CFG_IMPLEMENT_FN_WRITEOUT 1
/* Define this to 1 if you want to use interrupt-out (or bulk out) endpoints. /* Define this to 1 if you want to use interrupt-out (or bulk out) endpoints.
* You must implement the function usbFunctionWriteOut() which receives all * You must implement the function usbFunctionWriteOut() which receives all
* interrupt/bulk data sent to any endpoint other than 0. The endpoint number * interrupt/bulk data sent to any endpoint other than 0. The endpoint number

View file

@ -106,8 +106,6 @@ void raw_hid_send(uint8_t *data, uint8_t length) {
usbPoll(); usbPoll();
} }
usbSetInterrupt3(0, 0); usbSetInterrupt3(0, 0);
usbPoll();
_delay_ms(1);
} }
__attribute__((weak)) void raw_hid_receive(uint8_t *data, uint8_t length) { __attribute__((weak)) void raw_hid_receive(uint8_t *data, uint8_t length) {