forked from espressif/esp-idf
fix(esp_hw_support): Unused variables in memory_utils functions
This commit is contained in:
@@ -96,6 +96,7 @@ __attribute__((always_inline))
|
|||||||
inline static bool esp_ptr_in_diram_iram(const void *p) {
|
inline static bool esp_ptr_in_diram_iram(const void *p) {
|
||||||
// TODO: IDF-5980 esp32c6 D/I RAM share the same address
|
// TODO: IDF-5980 esp32c6 D/I RAM share the same address
|
||||||
#if SOC_DIRAM_IRAM_LOW == SOC_DIRAM_DRAM_LOW
|
#if SOC_DIRAM_IRAM_LOW == SOC_DIRAM_DRAM_LOW
|
||||||
|
(void)p;
|
||||||
return false;
|
return false;
|
||||||
#else
|
#else
|
||||||
return ((intptr_t)p >= SOC_DIRAM_IRAM_LOW && (intptr_t)p < SOC_DIRAM_IRAM_HIGH);
|
return ((intptr_t)p >= SOC_DIRAM_IRAM_LOW && (intptr_t)p < SOC_DIRAM_IRAM_HIGH);
|
||||||
@@ -114,6 +115,7 @@ inline static bool esp_ptr_in_rtc_iram_fast(const void *p) {
|
|||||||
#if SOC_RTC_FAST_MEM_SUPPORTED
|
#if SOC_RTC_FAST_MEM_SUPPORTED
|
||||||
return ((intptr_t)p >= SOC_RTC_IRAM_LOW && (intptr_t)p < SOC_RTC_IRAM_HIGH);
|
return ((intptr_t)p >= SOC_RTC_IRAM_LOW && (intptr_t)p < SOC_RTC_IRAM_HIGH);
|
||||||
#else
|
#else
|
||||||
|
(void)p;
|
||||||
return false;
|
return false;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@@ -130,6 +132,7 @@ inline static bool esp_ptr_in_rtc_dram_fast(const void *p) {
|
|||||||
#if SOC_RTC_FAST_MEM_SUPPORTED
|
#if SOC_RTC_FAST_MEM_SUPPORTED
|
||||||
return ((intptr_t)p >= SOC_RTC_DRAM_LOW && (intptr_t)p < SOC_RTC_DRAM_HIGH);
|
return ((intptr_t)p >= SOC_RTC_DRAM_LOW && (intptr_t)p < SOC_RTC_DRAM_HIGH);
|
||||||
#else
|
#else
|
||||||
|
(void)p;
|
||||||
return false;
|
return false;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@@ -95,6 +95,7 @@ __attribute__((always_inline))
|
|||||||
inline static bool esp_ptr_in_diram_iram(const void *p) {
|
inline static bool esp_ptr_in_diram_iram(const void *p) {
|
||||||
// TODO: IDF-5980 esp32c6 D/I RAM share the same address
|
// TODO: IDF-5980 esp32c6 D/I RAM share the same address
|
||||||
#if SOC_DIRAM_IRAM_LOW == SOC_DIRAM_DRAM_LOW
|
#if SOC_DIRAM_IRAM_LOW == SOC_DIRAM_DRAM_LOW
|
||||||
|
(void)p;
|
||||||
return false;
|
return false;
|
||||||
#else
|
#else
|
||||||
return ((intptr_t)p >= SOC_DIRAM_IRAM_LOW && (intptr_t)p < SOC_DIRAM_IRAM_HIGH);
|
return ((intptr_t)p >= SOC_DIRAM_IRAM_LOW && (intptr_t)p < SOC_DIRAM_IRAM_HIGH);
|
||||||
@@ -113,6 +114,7 @@ inline static bool esp_ptr_in_rtc_iram_fast(const void *p) {
|
|||||||
#if SOC_RTC_FAST_MEM_SUPPORTED
|
#if SOC_RTC_FAST_MEM_SUPPORTED
|
||||||
return ((intptr_t)p >= SOC_RTC_IRAM_LOW && (intptr_t)p < SOC_RTC_IRAM_HIGH);
|
return ((intptr_t)p >= SOC_RTC_IRAM_LOW && (intptr_t)p < SOC_RTC_IRAM_HIGH);
|
||||||
#else
|
#else
|
||||||
|
(void)p;
|
||||||
return false;
|
return false;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@@ -129,6 +131,7 @@ inline static bool esp_ptr_in_rtc_dram_fast(const void *p) {
|
|||||||
#if SOC_RTC_FAST_MEM_SUPPORTED
|
#if SOC_RTC_FAST_MEM_SUPPORTED
|
||||||
return ((intptr_t)p >= SOC_RTC_DRAM_LOW && (intptr_t)p < SOC_RTC_DRAM_HIGH);
|
return ((intptr_t)p >= SOC_RTC_DRAM_LOW && (intptr_t)p < SOC_RTC_DRAM_HIGH);
|
||||||
#else
|
#else
|
||||||
|
(void)p;
|
||||||
return false;
|
return false;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user