From cd906e97e440b5d3b1dc0a34f1d0c7f072426642 Mon Sep 17 00:00:00 2001 From: dragonmux Date: Thu, 11 Apr 2024 03:12:12 +0100 Subject: [PATCH] usb/dwc: Fixed the definitions in the DWC common header not being wrapped in BEGIN_DECLS and END_DECLS --- lib/usb/usb_dwc_common.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/usb/usb_dwc_common.h b/lib/usb/usb_dwc_common.h index 34ed3002..fb66a9cd 100644 --- a/lib/usb/usb_dwc_common.h +++ b/lib/usb/usb_dwc_common.h @@ -17,8 +17,12 @@ * along with this library. If not, see . */ -#ifndef __USB_DWC_COMMON_H_ -#define __USB_DWC_COMMON_H_ +#ifndef USB_DWC_COMMON_H +#define USB_DWC_COMMON_H + +#include + +BEGIN_DECLS void dwc_set_address(usbd_device *usbd_dev, uint8_t addr); void dwc_ep_setup(usbd_device *usbd_dev, uint8_t addr, uint8_t type, @@ -35,5 +39,6 @@ uint16_t dwc_ep_read_packet(usbd_device *usbd_dev, uint8_t addr, void dwc_poll(usbd_device *usbd_dev); void dwc_disconnect(usbd_device *usbd_dev, bool disconnected); +END_DECLS -#endif /* __USB_DWC_COMMON_H_ */ +#endif /* USB_DWC_COMMON_H */