mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-30 19:19:21 +00:00
refactor(ci): removed unnecessary hal and soc mock header files
This commit is contained in:
@@ -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
|
||||
|
27
components/soc/linux/include/soc/clk_tree_defs.h
Normal file
27
components/soc/linux/include/soc/clk_tree_defs.h
Normal 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;
|
9
components/soc/linux/include/soc/gpio_pins.h
Normal file
9
components/soc/linux/include/soc/gpio_pins.h
Normal 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).
|
||||
*/
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user