Skip to content

Commit

Permalink
fix: Add extern "C" to em_usart.h
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jakeru committed Dec 1, 2022
1 parent 3abe169 commit 044365b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions platform/emlib/inc/em_eusart.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
#include "em_eusart_compat.h"
#include <stdbool.h>

#ifdef __cplusplus
extern "C" {
#endif

/* *INDENT-OFF* */
// *****************************************************************************
/// @addtogroup eusart EUSART - Extended USART
Expand Down Expand Up @@ -1155,6 +1159,10 @@ __STATIC_INLINE void EUSART_IntSet(EUSART_TypeDef *eusart, uint32_t flags)
eusart->IF_SET = flags;
}

#ifdef __cplusplus
}
#endif

/** @} (end addtogroup eusart) */
#endif /* defined(EUART_PRESENT) || defined(EUSART_PRESENT) */
#endif /* EM_EUSART_H */

0 comments on commit 044365b

Please sign in to comment.