Start moving code out of webusb and to Oryx feature

This commit is contained in:
Drashna Jael're
2020-01-14 16:30:29 -08:00
committed by Florian Didron
parent d3f23ecfbc
commit e41ab50016
10 changed files with 108 additions and 30 deletions
-1
View File
@@ -880,7 +880,6 @@ void webusb_send(uint8_t *data, uint8_t length) {
}
}
__attribute__((weak)) void webusb_receive_kb(uint8_t *data, uint8_t length) {
// Users should #include "raw_hid.h" in their own code
// and implement this function there. Leave this as weak linkage
// so users can opt to not handle data coming in.
-2
View File
@@ -288,8 +288,6 @@ void webusb_send(uint8_t *data, uint8_t length) {
Endpoint_ClearIN();
}
__attribute__((weak)) void webusb_receive_kb(uint8_t *data, uint8_t length) { }
static void webusb_task(void) {
// Create a temporary buffer to hold the read in data from the host
uint8_t data[WEBUSB_EPSIZE];