mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-22 13:01:16 +03:00
fix(esp_mspi): remove not used cmake variable
This commit is contained in:
committed by
Armando (Dou Yiwen)
parent
2cacb0bd56
commit
77807bfe6e
@@ -2,10 +2,14 @@ idf_build_get_property(target IDF_TARGET)
|
||||
idf_build_get_property(esp_tee_build ESP_TEE_BUILD)
|
||||
|
||||
set(srcs)
|
||||
set(includes "include" "${target}/include")
|
||||
set(includes "include")
|
||||
set(requires soc hal esp_hal_gpspi)
|
||||
set(priv_requires esp_hal_gpio)
|
||||
|
||||
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/${target}/include")
|
||||
list(APPEND includes "${target}/include")
|
||||
endif()
|
||||
|
||||
if(NOT "${target}" STREQUAL "linux")
|
||||
# TODO: IDF-15106 remove esp_hal_clock dependency
|
||||
list(APPEND requires "esp_hal_clock")
|
||||
|
||||
@@ -58,6 +58,7 @@ static inline void spimem_flash_ll_reset(spi_mem_dev_t *dev)
|
||||
*
|
||||
* @return true if last command is done, otherwise false.
|
||||
*/
|
||||
__attribute__((always_inline))
|
||||
static inline bool spimem_flash_ll_cmd_is_done(const spi_mem_dev_t *dev)
|
||||
{
|
||||
return (dev->cmd.val == 0);
|
||||
@@ -325,6 +326,7 @@ static inline void spimem_flash_ll_set_write_protect(spi_mem_dev_t *dev, bool wp
|
||||
*
|
||||
* @param dev Beginning address of the peripheral registers.
|
||||
*/
|
||||
__attribute__((always_inline))
|
||||
static inline void spimem_flash_ll_enter_dpd(spi_mem_dev_t *dev)
|
||||
{
|
||||
dev->cmd.flash_dp = 1;
|
||||
@@ -335,6 +337,7 @@ static inline void spimem_flash_ll_enter_dpd(spi_mem_dev_t *dev)
|
||||
*
|
||||
* @param dev Beginning address of the peripheral registers.
|
||||
*/
|
||||
__attribute__((always_inline))
|
||||
static inline void spimem_flash_ll_exit_dpd(spi_mem_dev_t *dev)
|
||||
{
|
||||
dev->cmd.flash_res = 1;
|
||||
|
||||
@@ -58,6 +58,7 @@ static inline void spimem_flash_ll_reset(spi_mem_dev_t *dev)
|
||||
*
|
||||
* @return true if last command is done, otherwise false.
|
||||
*/
|
||||
__attribute__((always_inline))
|
||||
static inline bool spimem_flash_ll_cmd_is_done(const spi_mem_dev_t *dev)
|
||||
{
|
||||
return (dev->cmd.val == 0);
|
||||
@@ -325,6 +326,7 @@ static inline void spimem_flash_ll_set_write_protect(spi_mem_dev_t *dev, bool wp
|
||||
*
|
||||
* @param dev Beginning address of the peripheral registers.
|
||||
*/
|
||||
__attribute__((always_inline))
|
||||
static inline void spimem_flash_ll_enter_dpd(spi_mem_dev_t *dev)
|
||||
{
|
||||
dev->cmd.flash_dp = 1;
|
||||
@@ -335,6 +337,7 @@ static inline void spimem_flash_ll_enter_dpd(spi_mem_dev_t *dev)
|
||||
*
|
||||
* @param dev Beginning address of the peripheral registers.
|
||||
*/
|
||||
__attribute__((always_inline))
|
||||
static inline void spimem_flash_ll_exit_dpd(spi_mem_dev_t *dev)
|
||||
{
|
||||
dev->cmd.flash_res = 1;
|
||||
|
||||
@@ -62,6 +62,7 @@ static inline void spimem_flash_ll_reset(spi_mem_dev_t *dev)
|
||||
*
|
||||
* @return true if last command is done, otherwise false.
|
||||
*/
|
||||
__attribute__((always_inline))
|
||||
static inline bool spimem_flash_ll_cmd_is_done(const spi_mem_dev_t *dev)
|
||||
{
|
||||
return (dev->cmd.val == 0);
|
||||
@@ -361,6 +362,7 @@ static inline void spimem_flash_ll_set_write_protect(spi_mem_dev_t *dev, bool wp
|
||||
*
|
||||
* @param dev Beginning address of the peripheral registers.
|
||||
*/
|
||||
__attribute__((always_inline))
|
||||
static inline void spimem_flash_ll_enter_dpd(spi_mem_dev_t *dev)
|
||||
{
|
||||
dev->cmd.flash_dp = 1;
|
||||
@@ -371,6 +373,7 @@ static inline void spimem_flash_ll_enter_dpd(spi_mem_dev_t *dev)
|
||||
*
|
||||
* @param dev Beginning address of the peripheral registers.
|
||||
*/
|
||||
__attribute__((always_inline))
|
||||
static inline void spimem_flash_ll_exit_dpd(spi_mem_dev_t *dev)
|
||||
{
|
||||
dev->cmd.flash_res = 1;
|
||||
|
||||
@@ -59,6 +59,7 @@ static inline void spimem_flash_ll_reset(spi_mem_dev_t *dev)
|
||||
*
|
||||
* @return true if last command is done, otherwise false.
|
||||
*/
|
||||
__attribute__((always_inline))
|
||||
static inline bool spimem_flash_ll_cmd_is_done(const spi_mem_dev_t *dev)
|
||||
{
|
||||
return (dev->cmd.val == 0);
|
||||
@@ -326,6 +327,7 @@ static inline void spimem_flash_ll_set_write_protect(spi_mem_dev_t *dev, bool wp
|
||||
*
|
||||
* @param dev Beginning address of the peripheral registers.
|
||||
*/
|
||||
__attribute__((always_inline))
|
||||
static inline void spimem_flash_ll_enter_dpd(spi_mem_dev_t *dev)
|
||||
{
|
||||
dev->cmd.flash_dp = 1;
|
||||
@@ -336,6 +338,7 @@ static inline void spimem_flash_ll_enter_dpd(spi_mem_dev_t *dev)
|
||||
*
|
||||
* @param dev Beginning address of the peripheral registers.
|
||||
*/
|
||||
__attribute__((always_inline))
|
||||
static inline void spimem_flash_ll_exit_dpd(spi_mem_dev_t *dev)
|
||||
{
|
||||
dev->cmd.flash_res = 1;
|
||||
|
||||
@@ -62,6 +62,7 @@ static inline void spimem_flash_ll_reset(spi_mem_dev_t *dev)
|
||||
*
|
||||
* @return true if last command is done, otherwise false.
|
||||
*/
|
||||
__attribute__((always_inline))
|
||||
static inline bool spimem_flash_ll_cmd_is_done(const spi_mem_dev_t *dev)
|
||||
{
|
||||
return (dev->cmd.val == 0);
|
||||
@@ -356,6 +357,7 @@ static inline void spimem_flash_ll_set_write_protect(spi_mem_dev_t *dev, bool wp
|
||||
*
|
||||
* @param dev Beginning address of the peripheral registers.
|
||||
*/
|
||||
__attribute__((always_inline))
|
||||
static inline void spimem_flash_ll_enter_dpd(spi_mem_dev_t *dev)
|
||||
{
|
||||
dev->cmd.flash_dp = 1;
|
||||
@@ -366,6 +368,7 @@ static inline void spimem_flash_ll_enter_dpd(spi_mem_dev_t *dev)
|
||||
*
|
||||
* @param dev Beginning address of the peripheral registers.
|
||||
*/
|
||||
__attribute__((always_inline))
|
||||
static inline void spimem_flash_ll_exit_dpd(spi_mem_dev_t *dev)
|
||||
{
|
||||
dev->cmd.flash_res = 1;
|
||||
|
||||
@@ -60,6 +60,7 @@ static inline void spimem_flash_ll_reset(spi_mem_dev_t *dev)
|
||||
*
|
||||
* @return true if last command is done, otherwise false.
|
||||
*/
|
||||
__attribute__((always_inline))
|
||||
static inline bool spimem_flash_ll_cmd_is_done(const spi_mem_dev_t *dev)
|
||||
{
|
||||
return (dev->cmd.val == 0);
|
||||
@@ -327,6 +328,7 @@ static inline void spimem_flash_ll_set_write_protect(spi_mem_dev_t *dev, bool wp
|
||||
*
|
||||
* @param dev Beginning address of the peripheral registers.
|
||||
*/
|
||||
__attribute__((always_inline))
|
||||
static inline void spimem_flash_ll_enter_dpd(spi_mem_dev_t *dev)
|
||||
{
|
||||
dev->cmd.flash_dp = 1;
|
||||
@@ -337,6 +339,7 @@ static inline void spimem_flash_ll_enter_dpd(spi_mem_dev_t *dev)
|
||||
*
|
||||
* @param dev Beginning address of the peripheral registers.
|
||||
*/
|
||||
__attribute__((always_inline))
|
||||
static inline void spimem_flash_ll_exit_dpd(spi_mem_dev_t *dev)
|
||||
{
|
||||
dev->cmd.flash_res = 1;
|
||||
|
||||
@@ -60,6 +60,7 @@ static inline void spimem_flash_ll_reset(spi_mem_dev_t *dev)
|
||||
*
|
||||
* @return true if last command is done, otherwise false.
|
||||
*/
|
||||
__attribute__((always_inline))
|
||||
static inline bool spimem_flash_ll_cmd_is_done(const spi_mem_dev_t *dev)
|
||||
{
|
||||
return (dev->cmd.val == 0);
|
||||
@@ -355,6 +356,7 @@ static inline void spimem_flash_ll_set_write_protect(spi_mem_dev_t *dev, bool wp
|
||||
*
|
||||
* @param dev Beginning address of the peripheral registers.
|
||||
*/
|
||||
__attribute__((always_inline))
|
||||
static inline void spimem_flash_ll_enter_dpd(spi_mem_dev_t *dev)
|
||||
{
|
||||
dev->cmd.flash_dp = 1;
|
||||
@@ -365,6 +367,7 @@ static inline void spimem_flash_ll_enter_dpd(spi_mem_dev_t *dev)
|
||||
*
|
||||
* @param dev Beginning address of the peripheral registers.
|
||||
*/
|
||||
__attribute__((always_inline))
|
||||
static inline void spimem_flash_ll_exit_dpd(spi_mem_dev_t *dev)
|
||||
{
|
||||
dev->cmd.flash_res = 1;
|
||||
|
||||
@@ -356,6 +356,7 @@ static inline void spimem_flash_ll_set_write_protect(spi_mem_dev_t *dev, bool wp
|
||||
*
|
||||
* @param dev Beginning address of the peripheral registers.
|
||||
*/
|
||||
__attribute__((always_inline))
|
||||
static inline void spimem_flash_ll_enter_dpd(spi_mem_dev_t *dev)
|
||||
{
|
||||
dev->cmd.flash_dp = 1;
|
||||
@@ -366,6 +367,7 @@ static inline void spimem_flash_ll_enter_dpd(spi_mem_dev_t *dev)
|
||||
*
|
||||
* @param dev Beginning address of the peripheral registers.
|
||||
*/
|
||||
__attribute__((always_inline))
|
||||
static inline void spimem_flash_ll_exit_dpd(spi_mem_dev_t *dev)
|
||||
{
|
||||
dev->cmd.flash_res = 1;
|
||||
|
||||
@@ -65,6 +65,7 @@ static inline void spimem_flash_ll_reset(spi_mem_dev_t *dev)
|
||||
*
|
||||
* @return true if last command is done, otherwise false.
|
||||
*/
|
||||
__attribute__((always_inline))
|
||||
static inline bool spimem_flash_ll_cmd_is_done(const spi_mem_dev_t *dev)
|
||||
{
|
||||
return (dev->cmd.val == 0);
|
||||
@@ -367,6 +368,7 @@ static inline void spimem_flash_ll_set_write_protect(spi_mem_dev_t *dev, bool wp
|
||||
*
|
||||
* @param dev Beginning address of the peripheral registers.
|
||||
*/
|
||||
__attribute__((always_inline))
|
||||
static inline void spimem_flash_ll_enter_dpd(spi_mem_dev_t *dev)
|
||||
{
|
||||
dev->cmd.flash_dp = 1;
|
||||
@@ -377,6 +379,7 @@ static inline void spimem_flash_ll_enter_dpd(spi_mem_dev_t *dev)
|
||||
*
|
||||
* @param dev Beginning address of the peripheral registers.
|
||||
*/
|
||||
__attribute__((always_inline))
|
||||
static inline void spimem_flash_ll_exit_dpd(spi_mem_dev_t *dev)
|
||||
{
|
||||
dev->cmd.flash_res = 1;
|
||||
|
||||
@@ -55,6 +55,7 @@ static inline void spimem_flash_ll_reset(spi_mem_dev_t *dev)
|
||||
*
|
||||
* @return true if last command is done, otherwise false.
|
||||
*/
|
||||
__attribute__((always_inline))
|
||||
static inline bool spimem_flash_ll_cmd_is_done(const spi_mem_dev_t *dev)
|
||||
{
|
||||
return (dev->cmd.val == 0);
|
||||
@@ -262,6 +263,7 @@ static inline void spimem_flash_ll_set_write_protect(spi_mem_dev_t *dev, bool wp
|
||||
*
|
||||
* @param dev Beginning address of the peripheral registers.
|
||||
*/
|
||||
__attribute__((always_inline))
|
||||
static inline void spimem_flash_ll_enter_dpd(spi_mem_dev_t *dev)
|
||||
{
|
||||
dev->cmd.flash_dp = 1;
|
||||
@@ -272,6 +274,7 @@ static inline void spimem_flash_ll_enter_dpd(spi_mem_dev_t *dev)
|
||||
*
|
||||
* @param dev Beginning address of the peripheral registers.
|
||||
*/
|
||||
__attribute__((always_inline))
|
||||
static inline void spimem_flash_ll_exit_dpd(spi_mem_dev_t *dev)
|
||||
{
|
||||
dev->cmd.flash_res = 1;
|
||||
|
||||
@@ -59,6 +59,7 @@ static inline void spimem_flash_ll_reset(spi_mem_dev_t *dev)
|
||||
*
|
||||
* @return true if last command is done, otherwise false.
|
||||
*/
|
||||
__attribute__((always_inline))
|
||||
static inline bool spimem_flash_ll_cmd_is_done(const spi_mem_dev_t *dev)
|
||||
{
|
||||
return (dev->cmd.val == 0);
|
||||
@@ -329,6 +330,7 @@ static inline void spimem_flash_ll_set_write_protect(spi_mem_dev_t *dev, bool wp
|
||||
*
|
||||
* @param dev Beginning address of the peripheral registers.
|
||||
*/
|
||||
__attribute__((always_inline))
|
||||
static inline void spimem_flash_ll_enter_dpd(spi_mem_dev_t *dev)
|
||||
{
|
||||
dev->cmd.flash_dp = 1;
|
||||
@@ -339,6 +341,7 @@ static inline void spimem_flash_ll_enter_dpd(spi_mem_dev_t *dev)
|
||||
*
|
||||
* @param dev Beginning address of the peripheral registers.
|
||||
*/
|
||||
__attribute__((always_inline))
|
||||
static inline void spimem_flash_ll_exit_dpd(spi_mem_dev_t *dev)
|
||||
{
|
||||
dev->cmd.flash_res = 1;
|
||||
|
||||
@@ -366,6 +366,7 @@ static inline void spimem_flash_ll_set_write_protect(spi_mem_dev_t *dev, bool wp
|
||||
*
|
||||
* @param dev Beginning address of the peripheral registers.
|
||||
*/
|
||||
__attribute__((always_inline))
|
||||
static inline void spimem_flash_ll_enter_dpd(spi_mem_dev_t *dev)
|
||||
{
|
||||
dev->cmd.flash_dp = 1;
|
||||
@@ -376,6 +377,7 @@ static inline void spimem_flash_ll_enter_dpd(spi_mem_dev_t *dev)
|
||||
*
|
||||
* @param dev Beginning address of the peripheral registers.
|
||||
*/
|
||||
__attribute__((always_inline))
|
||||
static inline void spimem_flash_ll_exit_dpd(spi_mem_dev_t *dev)
|
||||
{
|
||||
dev->cmd.flash_res = 1;
|
||||
|
||||
@@ -83,14 +83,6 @@ idf_component_register(SRCS "${srcs}"
|
||||
INCLUDE_DIRS ${include_dirs}
|
||||
LDFRAGMENTS ${ldfragments})
|
||||
|
||||
# Avoid cache miss by unexpected inlineing when built by -Os
|
||||
set_source_files_properties(${cache_srcs} PROPERTIES COMPILE_FLAGS "-fno-inline-functions")
|
||||
if(CMAKE_C_COMPILER_ID MATCHES "GNU")
|
||||
# These flags are GCC specific
|
||||
set_property(SOURCE ${cache_srcs} APPEND_STRING PROPERTY COMPILE_FLAGS
|
||||
" -fno-inline-small-functions -fno-inline-functions-called-once")
|
||||
endif()
|
||||
|
||||
if(NOT non_os_build AND NOT CONFIG_APP_BUILD_TYPE_PURE_RAM_APP)
|
||||
if(CONFIG_SPIRAM)
|
||||
# esp_mspi_get_io() queries esp_psram_io_get_cs_io() for the PSRAM CS pin
|
||||
|
||||
Reference in New Issue
Block a user