add C++ include guards to header files which are missing them

Fixes https://github.com/espressif/esp-idf/issues/628
This commit is contained in:
Ivan Grokhotkov
2017-05-31 17:20:17 +08:00
parent d718cbd873
commit 06accaf851
5 changed files with 38 additions and 1 deletions
@@ -19,6 +19,10 @@
#include "esp_attr.h"
#include "esp_dport_access.h"
#ifdef __cplusplus
extern "C" {
#endif
//Registers Operation {{
//Register read macros with an underscore prefix access DPORT memory directly. In IDF apps, use the non-underscore versions to be SMP-safe.
@@ -114,5 +118,8 @@ static inline uint32_t IRAM_ATTR DPORT_READ_PERI_REG(uint32_t addr)
#define DPORT_GET_PERI_REG_BITS2(reg, mask,shift) ((DPORT_READ_PERI_REG(reg)>>(shift))&(mask))
//}}
#ifdef __cplusplus
}
#endif
#endif /* _DPORT_ACCESS_H_ */