- wakeup() removed
This commit is contained in:
parent
fb894c4703
commit
9753e7ded8
6
usb.c
6
usb.c
@ -250,11 +250,9 @@ void usbcore_process_nonsetup_event(UsbDrv_CallbackCompound *cbcpd) {
|
||||
}
|
||||
}
|
||||
|
||||
void usbcore_wake_up_endpoint(uint8_t ep, uint8_t dir) {
|
||||
drv->en_ep_irq(ep, dir, true);
|
||||
}
|
||||
|
||||
void usbcore_register_IN_callback(uint8_t ep, UsbDrv_IN_cb cb) {
|
||||
bool en = cb != NULL;
|
||||
drv->en_ep_irq(ep, USB_IN, en);
|
||||
drv->reg_IN_cb(ep, cb);
|
||||
}
|
||||
|
||||
|
8
usb.h
8
usb.h
@ -58,14 +58,6 @@ uint32_t usbcore_schedule_transmission(uint8_t ep, const uint8_t *data, uint16_t
|
||||
*/
|
||||
uint32_t usbcore_schedule_reception(uint8_t ep, uint16_t size);
|
||||
|
||||
/**
|
||||
* Wake up an Endpoint.
|
||||
*
|
||||
* @param ep index of the Endpoint
|
||||
* @param dir direction of the Endpoint
|
||||
*/
|
||||
void usbcore_wake_up_endpoint(uint8_t ep, uint8_t dir);
|
||||
|
||||
/**
|
||||
* Register a callback for IN transmission completion.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user