Skip to content

Commit 51f120b

Browse files
committed
NANO130 add extern C into nano100_usbd.h for C++ caller
1 parent 5272550 commit 51f120b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

targets/TARGET_NUVOTON/TARGET_NANO100/device/StdDriver/nano100_usbd.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
******************************************************************************/
1010
#ifndef __USBD_H__
1111
#define __USBD_H__
12-
12+
#ifdef __cplusplus
13+
extern "C"
14+
{
15+
#endif
1316

1417
/** @addtogroup NANO100_Device_Driver NANO100 Device Driver
1518
@{
@@ -501,6 +504,9 @@ void USBD_LockEpStall(uint32_t u32EpBitmap);
501504

502505
/*@}*/ /* end of group NANO100_Device_Driver */
503506

507+
#ifdef __cplusplus
508+
}
509+
#endif
504510

505511
#endif //__USBD_H__
506512

0 commit comments

Comments
 (0)