NANO130 add extern C into nano100_usbd.h for C++ caller

pull/12176/head
cyliangtw 2019-11-20 10:42:29 +08:00
parent 93fbef2cde
commit a5aaabff5d
1 changed files with 7 additions and 1 deletions
targets/TARGET_NUVOTON/TARGET_NANO100/device/StdDriver

View File

@ -9,7 +9,10 @@
******************************************************************************/
#ifndef __USBD_H__
#define __USBD_H__
#ifdef __cplusplus
extern "C"
{
#endif
/** @addtogroup NANO100_Device_Driver NANO100 Device Driver
@{
@ -501,6 +504,9 @@ void USBD_LockEpStall(uint32_t u32EpBitmap);
/*@}*/ /* end of group NANO100_Device_Driver */
#ifdef __cplusplus
}
#endif
#endif //__USBD_H__