mirror of
https://github.com/apache/nuttx.git
synced 2026-06-08 10:21:51 +08:00
arch/arm/src/imxrt/imxrt_periphclks.h: Ensure C++ compatibility.
This commit is contained in:
committed by
Gregory Nutt
parent
8b9014bc1d
commit
2f1678b7be
@@ -375,6 +375,15 @@
|
||||
#define imxrt_clockall_xbar2() imxrt_periphclk_configure(CCM_CCGR_XBAR2, CCM_CG_ALL)
|
||||
#define imxrt_clockall_xbar3() imxrt_periphclk_configure(CCM_CCGR_XBAR3, CCM_CG_ALL)
|
||||
|
||||
#undef EXTERN
|
||||
#if defined(__cplusplus)
|
||||
#define EXTERN extern "C"
|
||||
extern "C"
|
||||
{
|
||||
#else
|
||||
#define EXTERN extern
|
||||
#endif
|
||||
|
||||
/********************************************************************************************
|
||||
* Public Functions
|
||||
*********************************************************************************************/
|
||||
@@ -399,4 +408,8 @@
|
||||
void imxrt_periphclk_configure(uintptr_t regaddr, unsigned int index,
|
||||
unsigned int value);
|
||||
|
||||
#undef EXTERN
|
||||
#if defined(__cplusplus)
|
||||
}
|
||||
#endif
|
||||
#endif /* __ARCH_ARM_SRC_IMXRT_IMXRT_PERIPHCLKS_H */
|
||||
|
||||
Reference in New Issue
Block a user