imxrt:lowputc add extern "C"

This commit is contained in:
David Sidrane 2022-03-16 13:21:44 -07:00 committed by Xiang Xiao
parent f64677b8c9
commit b9c6284750
1 changed files with 15 additions and 1 deletions

View File

@ -40,6 +40,15 @@
* Public Types
****************************************************************************/
#undef EXTERN
#if defined(__cplusplus)
#define EXTERN extern "C"
extern "C"
{
#else
#define EXTERN extern
#endif
#ifdef HAVE_LPUART_DEVICE
/* This structure describes the configuration of an UART */
@ -102,4 +111,9 @@ void imxrt_lowputc(int ch);
# define imxrt_lowputc(ch)
#endif
#endif /* __ARCH_ARM_SRC_IMXRT_IMXRT_LOWPUTC_H */
#undef EXTERN
#ifdef __cplusplus
}
#endif
#endif /* __ARCH_ARM_SRC_IMXRT_LOWPUTC_H */