core headers: Add C++ linker compatibility
This commit is contained in:
parent
65307aed75
commit
afd58bc1ff
5 changed files with 39 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue