[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:
@@ -5,14 +5,18 @@
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "sdkconfig.h"
|
||||
#include "esp_err.h"
|
||||
#include <stdbool.h>
|
||||
#include "esp_intr_alloc.h"
|
||||
#if !CONFIG_IDF_TARGET_LINUX
|
||||
#include <esp_types.h>
|
||||
#include <esp_bit_defs.h>
|
||||
#include "esp_attr.h"
|
||||
#include "esp_intr_alloc.h"
|
||||
#include "soc/soc_caps.h"
|
||||
#include "soc/gpio_periph.h"
|
||||
#endif // !CONFIG_IDF_TARGET_LINUX
|
||||
#include "hal/gpio_types.h"
|
||||
|
||||
// |================================= WARNING ====================================================== |
|
||||
|
||||
@@ -9,8 +9,10 @@
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include "esp_err.h"
|
||||
#ifndef SPI_MOCK
|
||||
#include "soc/lldesc.h"
|
||||
#include "soc/spi_periph.h"
|
||||
#endif
|
||||
#include "hal/spi_types.h"
|
||||
#include "sdkconfig.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user