core headers: Add C++ linker compatibility
This commit is contained in:
parent
65307aed75
commit
afd58bc1ff
5 changed files with 39 additions and 2 deletions
|
|
@ -11,6 +11,10 @@
|
|||
#include "esp/types.h"
|
||||
#include "esp/iomux_regs.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Convert a GPIO pin number to an iomux register index.
|
||||
*
|
||||
|
|
@ -64,4 +68,8 @@ inline static void iomux_set_gpio_function(const uint8_t gpio_number, const uint
|
|||
declared above */
|
||||
#include "esp/iomux_private.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue