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
+13
View File
@@ -774,3 +774,16 @@ __attribute__((weak)) void startup_user() {}
__attribute__((weak)) void shutdown_user() {}
//------------------------------------------------------------------------------
#ifdef WEBUSB_ENABLE
__attribute__((weak)) bool webusb_receive_user(uint8_t *data, uint8_t length) { return false; }
__attribute__((weak)) bool webusb_receive_kb(uint8_t *data, uint8_t length) { return webusb_receive_user(data, length); }
bool webusb_receive_quantum(uint8_t *data, uint8_t length) {
#ifdef ORYX_ENABLE
return webusb_receive_oryx(data, length);
#else
return webusb_receive_kb(data, length);
#endif
}
#endif