mirror of
https://github.com/apache/nuttx.git
synced 2026-06-09 02:44:53 +08:00
imxrt:lowputc add extern "C"
This commit is contained in:
committed by
Xiang Xiao
parent
f64677b8c9
commit
b9c6284750
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user