diff options
Diffstat (limited to 'common/usbx_host_controllers/inc')
| -rwxr-xr-x | common/usbx_host_controllers/inc/ux_hcd_ehci.h | 25 | ||||
| -rwxr-xr-x | common/usbx_host_controllers/inc/ux_hcd_ohci.h | 22 |
2 files changed, 44 insertions, 3 deletions
diff --git a/common/usbx_host_controllers/inc/ux_hcd_ehci.h b/common/usbx_host_controllers/inc/ux_hcd_ehci.h index 2154558..036bbf0 100755 --- a/common/usbx_host_controllers/inc/ux_hcd_ehci.h +++ b/common/usbx_host_controllers/inc/ux_hcd_ehci.h @@ -26,7 +26,7 @@ /* COMPONENT DEFINITION RELEASE */ /* */ /* ux_hcd_ehci.h PORTABLE C */ -/* 6.1.2 */ +/* 6.1.8 */ /* AUTHOR */ /* */ /* Chaoqiong Xiao, Microsoft Corporation */ @@ -50,14 +50,29 @@ /* used unsigned defines, */ /* named unions and structs, */ /* resulting in version 6.1.2 */ +/* 08-02-2021 Chaoqiong Xiao Modified comment(s), */ +/* fixed spelling error, */ +/* added extern "C" keyword */ +/* for compatibility with C++, */ +/* resulting in version 6.1.8 */ /* */ /**************************************************************************/ #ifndef UX_HCD_EHCI_H #define UX_HCD_EHCI_H +/* Determine if a C++ compiler is being used. If so, ensure that standard + C is used to process the API information. */ -/* Possible defined EHCI HCD extentions. */ +#ifdef __cplusplus + +/* Yes, C++ compiler is present. Use standard C. */ +extern "C" { + +#endif + + +/* Possible defined EHCI HCD extensions. */ /* Extension for peripheral host mode select (function like). */ /* #define UX_HCD_EHCI_EXT_USB_HOST_MODE_ENABLE(hcd_ehci) */ @@ -827,5 +842,11 @@ VOID _ux_hcd_ehci_transfer_request_process(UX_TRANSFER *transfer_request); #define ux_hcd_ehci_initialize _ux_hcd_ehci_initialize #define ux_hcd_ehci_interrupt_handler _ux_hcd_ehci_interrupt_handler +/* Determine if a C++ compiler is being used. If so, complete the standard + C conditional started above. */ +#ifdef __cplusplus +} +#endif + #endif diff --git a/common/usbx_host_controllers/inc/ux_hcd_ohci.h b/common/usbx_host_controllers/inc/ux_hcd_ohci.h index 47de75e..f18977e 100755 --- a/common/usbx_host_controllers/inc/ux_hcd_ohci.h +++ b/common/usbx_host_controllers/inc/ux_hcd_ohci.h @@ -26,7 +26,7 @@ /* COMPONENT DEFINITION RELEASE */ /* */ /* ux_hcd_ohci.h PORTABLE C */ -/* 6.1.2 */ +/* 6.1.8 */ /* AUTHOR */ /* */ /* Chaoqiong Xiao, Microsoft Corporation */ @@ -46,12 +46,26 @@ /* 11-09-2020 Chaoqiong Xiao Modified comment(s), */ /* used unsigned defines, */ /* resulting in version 6.1.2 */ +/* 08-02-2021 Chaoqiong Xiao Modified comment(s), */ +/* added extern "C" keyword */ +/* for compatibility with C++, */ +/* resulting in version 6.1.8 */ /* */ /**************************************************************************/ #ifndef UX_HCD_OHCI_H #define UX_HCD_OHCI_H +/* Determine if a C++ compiler is being used. If so, ensure that standard + C is used to process the API information. */ + +#ifdef __cplusplus + +/* Yes, C++ compiler is present. Use standard C. */ +extern "C" { + +#endif + /* Define generic OHCI constants. */ @@ -394,5 +408,11 @@ VOID _ux_hcd_ohci_transfer_request_process(UX_TRANSFER *transfer_request); #define ux_hcd_ohci_initialize _ux_hcd_ohci_initialize #define ux_hcd_ohci_interrupt_handler _ux_hcd_ohci_interrupt_handler +/* Determine if a C++ compiler is being used. If so, complete the standard + C conditional started above. */ +#ifdef __cplusplus +} +#endif + #endif |
