spi_flash: mocking should be possible now

The following three headers will be mockes:
* esp_flash.h
* esp_spi_flash.h
* esp_partition.h
* counter functions live in own header
* add spi_flash sim dir for esp_err.h to Unity
* modified gen_esp_err_to_name.py to ignore
  sim/ dir in spi_flash component

Add cmock .yaml config file
Add spi hal header until soc can mock the hal
  layer as well.
This commit is contained in:
Jakob Hasse
2020-09-01 17:06:22 +08:00
committed by Fu Hanxi
parent 52093fa4ef
commit c233ce0449
8 changed files with 491 additions and 93 deletions

View File

@@ -27,7 +27,7 @@ else()
endif()
idf_component_register(SRCS "${srcs}"
INCLUDE_DIRS "include" "unity/src" "unity/extras/fixture/src")
INCLUDE_DIRS ${includes})
if(NOT ${IDF_TARGET} STREQUAL "linux")
target_compile_definitions(${COMPONENT_LIB} PUBLIC