Start moving code out of webusb and to Oryx feature
This commit is contained in:
committed by
Florian Didron
parent
d3f23ecfbc
commit
e41ab50016
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user