core headers: Add C++ linker compatibility

This commit is contained in:
Angus Gratton 2015-10-05 18:33:32 +11:00
parent 65307aed75
commit afd58bc1ff
5 changed files with 39 additions and 2 deletions

View file

@ -14,6 +14,10 @@
#include "esp/timer_regs.h"
#include "esp/cpu.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef enum {
FRC1 = 0,
FRC2 = 1,
@ -129,4 +133,8 @@ INLINED bool timer_set_timeout(const timer_frc_t frc, uint32_t us);
#include "timer_private.h"
#ifdef __cplusplus
}
#endif
#endif