mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-16 15:04:22 +00:00
ulp: Add header for common ULP definitions
Fixes problems with duplicate error codes in the two chip-specific ulp headers
This commit is contained in:

committed by
Angus Gratton

parent
438d513a95
commit
6b7da96d5b
@@ -5,9 +5,6 @@
|
||||
#if __has_include("soc/soc.h")
|
||||
#include "soc/soc.h"
|
||||
#endif
|
||||
#if __has_include("esp32/ulp.h")
|
||||
#include "esp32/ulp.h"
|
||||
#endif
|
||||
#if __has_include("esp_efuse.h")
|
||||
#include "esp_efuse.h"
|
||||
#endif
|
||||
@@ -56,6 +53,9 @@
|
||||
#if __has_include("tcpip_adapter.h")
|
||||
#include "tcpip_adapter.h"
|
||||
#endif
|
||||
#if __has_include("ulp_common.h")
|
||||
#include "ulp_common.h"
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ESP_ERR_TO_NAME_LOOKUP
|
||||
#define ERR_TBL_IT(err) {err, #err}
|
||||
@@ -203,7 +203,7 @@ static const esp_err_msg_t esp_err_msg_table[] = {
|
||||
API functions. NVS key is different in
|
||||
comparison */
|
||||
# endif
|
||||
// components/ulp/include/esp32/ulp.h
|
||||
// components/ulp/include/ulp_common.h
|
||||
# ifdef ESP_ERR_ULP_BASE
|
||||
ERR_TBL_IT(ESP_ERR_ULP_BASE), /* 4608 0x1200 Offset for ULP-related error codes */
|
||||
# endif
|
||||
|
Reference in New Issue
Block a user