mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-09 20:41:14 +00:00
feat(esp_common): Support ESP_ERROR_CHECK_ macros on Linux
Closes https://github.com/espressif/esp-idf/issues/13893
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
idf_build_get_property(target IDF_TARGET)
|
||||
if(${target} STREQUAL "linux")
|
||||
idf_component_register(SRCS "linux/spi_flash_linux.c"
|
||||
"linux/cache_utils.c"
|
||||
INCLUDE_DIRS include
|
||||
PRIV_INCLUDE_DIRS include/spi_flash)
|
||||
return()
|
||||
|
12
components/spi_flash/linux/cache_utils.c
Normal file
12
components/spi_flash/linux/cache_utils.c
Normal file
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
bool spi_flash_cache_enabled(void)
|
||||
{
|
||||
return true;
|
||||
}
|
Reference in New Issue
Block a user