[driver]: partial mocking of driver component

* added mocking of spi master and gpio
* mock registering in one function in
  component.cmake
This commit is contained in:
Jakob Hasse
2021-01-14 12:11:22 +08:00
parent cfb6857f53
commit 79b0256d63
13 changed files with 303 additions and 1 deletions

View File

@@ -56,6 +56,11 @@ endfunction()
macro(require_idf_targets)
endmacro()
macro(idf_component_mock)
idf_component_register(REQUIRES cmock)
return()
endmacro()
macro(idf_component_register)
set(options)
set(single_value KCONFIG KCONFIG_PROJBUILD)