refactor(ci): removed unnecessary hal and soc mock header files

This commit is contained in:
Jakob Hasse
2023-11-10 11:49:23 +08:00
parent 677faec371
commit 7b4cd55d97
12 changed files with 95 additions and 164 deletions

View File

@@ -10,3 +10,11 @@ config SOC_GPIO_IN_RANGE_MAX
config SOC_GPIO_OUT_RANGE_MAX
int
default 65535
config SOC_I2C_SUPPORT_SLAVE
bool
default y
config SOC_I2C_SUPPORT_10BIT_ADDR
bool
default y

View File

@@ -0,0 +1,27 @@
/*
* SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
/**
* Mock definitions for running on the host.
*/
/**
* @brief Supported clock sources for modules (CPU, peripherals, RTC, etc.)
*
* @note enum starts from 1, to save 0 for special purpose
*/
typedef enum {
SOC_MOD_CLK_APB = 1,
} soc_module_clk_t;
/**
* @brief Type of SPI clock source.
*/
typedef enum {
SPI_CLK_SRC_DEFAULT = SOC_MOD_CLK_APB,
SPI_CLK_SRC_APB = SOC_MOD_CLK_APB,
} soc_periph_spi_clk_src_t;

View File

@@ -0,0 +1,9 @@
/*
* SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* NOTE: this is a stripped-down copy to support building on host when using mocking (CMock).
*/

View File

@@ -22,8 +22,17 @@
*
*/
/*
* NOTE: These definitions are only meant to allow host-based unit testing of some features using CMock.
* They DO NOT imply any functionality on the host.
*/
#pragma once
// No meaning to define GPIO number for Linux target, only to avoid build warning on Kconfig ESP_CONSOLE_UART_TX_GPIO, ESP_CONSOLE_UART_RX_GPIO
/*-------------------------- GPIO CAPS ---------------------------------------*/
#define SOC_GPIO_IN_RANGE_MAX (65535)
#define SOC_GPIO_OUT_RANGE_MAX (65535)
/*-------------------------- I2C CAPS ----------------------------------------*/
#define SOC_I2C_SUPPORT_SLAVE (1)
#define SOC_I2C_SUPPORT_10BIT_ADDR (1)