Skip to content

Commit 044365b

Browse files
committed
fix: Add extern "C" to em_usart.h
Put most of the contents of `platform/emlib/inc/emusart.h` into a `extern "C"` block. It looks like this is how it has been done for most other header files.
1 parent 3abe169 commit 044365b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

platform/emlib/inc/em_eusart.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@
3535
#include "em_eusart_compat.h"
3636
#include <stdbool.h>
3737

38+
#ifdef __cplusplus
39+
extern "C" {
40+
#endif
41+
3842
/* *INDENT-OFF* */
3943
// *****************************************************************************
4044
/// @addtogroup eusart EUSART - Extended USART
@@ -1155,6 +1159,10 @@ __STATIC_INLINE void EUSART_IntSet(EUSART_TypeDef *eusart, uint32_t flags)
11551159
eusart->IF_SET = flags;
11561160
}
11571161

1162+
#ifdef __cplusplus
1163+
}
1164+
#endif
1165+
11581166
/** @} (end addtogroup eusart) */
11591167
#endif /* defined(EUART_PRESENT) || defined(EUSART_PRESENT) */
11601168
#endif /* EM_EUSART_H */

0 commit comments

Comments
 (0)