From b1ffce3ccd31a2658bf81ab4fc4bf6698489d718 Mon Sep 17 00:00:00 2001 From: Dylan Laduranty Date: Wed, 19 Apr 2023 20:54:30 +0200 Subject: [PATCH] usbus: remove deprecated USBUS_HANDLER_FLAG_TR_FAIL flag Signed-off-by: Dylan Laduranty --- sys/include/usb/usbus.h | 9 --------- sys/usb/usbus/usbus.c | 7 ------- 2 files changed, 16 deletions(-) diff --git a/sys/include/usb/usbus.h b/sys/include/usb/usbus.h index ad0bb06b81..7a142b9fdc 100644 --- a/sys/include/usb/usbus.h +++ b/sys/include/usb/usbus.h @@ -131,15 +131,6 @@ extern "C" { #define USBUS_HANDLER_FLAG_SOF (0x0002) /**< Report SOF events */ #define USBUS_HANDLER_FLAG_SUSPEND (0x0004) /**< Report suspend events */ #define USBUS_HANDLER_FLAG_RESUME (0x0008) /**< Report resume from suspend */ - -/** - * @brief Report transfer fail - * - * @deprecated This event is deprecated as only a limited number of low level - * devices report this and it doesn't offer value for upper layer - * code. This flag will be removed after the 2022.07 release - */ -#define USBUS_HANDLER_FLAG_TR_FAIL (0x0010) #define USBUS_HANDLER_FLAG_TR_STALL (0x0020) /**< Report transfer stall complete */ /** @} */ diff --git a/sys/usb/usbus/usbus.c b/sys/usb/usbus/usbus.c index 77bdf906c3..a584fa55f3 100644 --- a/sys/usb/usbus/usbus.c +++ b/sys/usb/usbus/usbus.c @@ -556,13 +556,6 @@ static void _event_ep_cb(usbdev_ep_t *ep, usbdev_event_t event) case USBDEV_EVENT_TR_COMPLETE: _usbus_transfer_complete(usbus, ep, handler); break; - case USBDEV_EVENT_TR_FAIL: - if (usbus_handler_isset_flag(handler, - USBUS_HANDLER_FLAG_TR_FAIL)) { - handler->driver->transfer_handler(usbus, handler, ep, - USBUS_EVENT_TRANSFER_FAIL); - } - break; case USBDEV_EVENT_TR_STALL: if (usbus_handler_isset_flag(handler, USBUS_HANDLER_FLAG_TR_STALL)) {