diff options
Diffstat (limited to 'chip/stm32/usb_gpio.h')
-rw-r--r-- | chip/stm32/usb_gpio.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/chip/stm32/usb_gpio.h b/chip/stm32/usb_gpio.h index cfbded61bf..2809b64401 100644 --- a/chip/stm32/usb_gpio.h +++ b/chip/stm32/usb_gpio.h @@ -108,14 +108,14 @@ struct usb_gpio_config { { \ usb_gpio_rx(&NAME); \ } \ - static void CONCAT2(NAME, _ep_reset)(void) \ + static void CONCAT2(NAME, _ep_event)(enum usb_ep_event evt) \ { \ - usb_gpio_reset(&NAME); \ + usb_gpio_event(&NAME, evt); \ } \ USB_DECLARE_EP(ENDPOINT, \ CONCAT2(NAME, _ep_tx), \ CONCAT2(NAME, _ep_rx), \ - CONCAT2(NAME, _ep_reset)) + CONCAT2(NAME, _ep_event)) /* @@ -124,6 +124,7 @@ struct usb_gpio_config { */ void usb_gpio_tx(struct usb_gpio_config const *config); void usb_gpio_rx(struct usb_gpio_config const *config); -void usb_gpio_reset(struct usb_gpio_config const *config); +void usb_gpio_event(struct usb_gpio_config const *config, + enum usb_ep_event evt); #endif /* __CROS_EC_USB_GPIO_H */ |