aboutsummaryrefslogtreecommitdiffstats
path: root/core/usb/usb_lib/usb_regs.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/usb/usb_lib/usb_regs.h')
-rw-r--r--core/usb/usb_lib/usb_regs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/usb/usb_lib/usb_regs.h b/core/usb/usb_lib/usb_regs.h
index 8f32e44..9a4df75 100644
--- a/core/usb/usb_lib/usb_regs.h
+++ b/core/usb/usb_lib/usb_regs.h
@@ -19,6 +19,10 @@
/* Includes ------------------------------------------------------------------*/
/* Exported types ------------------------------------------------------------*/
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
typedef enum _EP_DBUF_DIR
{
/* double buffered endpoint direction */
@@ -614,6 +618,10 @@ void FreeUserBuffer(u8 bEpNum/*bEpNum*/, u8 bDir);
u16 ToWord(u8, u8);
u16 ByteSwap(u16);
+#if defined(__cplusplus)
+}
+#endif
+
#endif /* __USB_REGS_H */
/******************* (C) COPYRIGHT 2008 STMicroelectronics *****END OF FILE****/