Merge branch 'bugifx/cplusplus_guards' into 'master'

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

See merge request !799
This commit is contained in:
Ivan Grokhotkov
2017-06-14 09:14:02 +08:00
5 changed files with 38 additions and 1 deletions

View File

@@ -15,6 +15,10 @@
#ifndef _ESP_DPORT_ACCESS_H_
#define _ESP_DPORT_ACCESS_H_
#ifdef __cplusplus
extern "C" {
#endif
void esp_dport_access_stall_other_cpu_start(void);
void esp_dport_access_stall_other_cpu_end(void);
void esp_dport_access_int_init(void);
@@ -27,4 +31,8 @@ void esp_dport_access_int_init(void);
#define DPORT_STALL_OTHER_CPU_END() esp_dport_access_stall_other_cpu_end()
#endif
#ifdef __cplusplus
}
#endif
#endif /* _ESP_DPORT_ACCESS_H_ */

View File

@@ -14,6 +14,10 @@
#ifndef HEAP_ALLOC_CAPS_H
#define HEAP_ALLOC_CAPS_H
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Flags to indicate the capabilities of the various memory systems
*/
@@ -99,5 +103,8 @@ static inline bool esp_ptr_dma_capable( const void *ptr )
return ( (int)ptr >= 0x3FFAE000 && (int)ptr < 0x40000000 );
}
#ifdef __cplusplus
}
#endif
#endif
#endif //HEAP_ALLOC_CAPS_H

View File

@@ -17,6 +17,10 @@
#include <esp_err.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef void (*esp_ipc_func_t)(void* arg);
/**
@@ -84,5 +88,8 @@ esp_err_t esp_ipc_call(uint32_t cpu_id, esp_ipc_func_t func, void* arg);
esp_err_t esp_ipc_call_blocking(uint32_t cpu_id, esp_ipc_func_t func, void* arg);
#ifdef __cplusplus
}
#endif
#endif /* __ESP_IPC_H__ */