diff --git a/.gitlab/ci/target-test.yml b/.gitlab/ci/target-test.yml index 43d92bab0c..4e5ccfaed1 100644 --- a/.gitlab/ci/target-test.yml +++ b/.gitlab/ci/target-test.yml @@ -1229,13 +1229,6 @@ UT_006: - ESP32_IDF - EMMC -UT_022: - extends: .unit_test_esp32_template - tags: - - ESP32_IDF - - UT_T2_I2C - - psram - UT_028: extends: .unit_test_esp32_template tags: @@ -1308,12 +1301,6 @@ UT_C3_FLASH: - ESP32C3_IDF - UT_T1_ESP_FLASH -UT_C3_I2C: - extends: .unit_test_esp32c3_template - tags: - - ESP32C3_IDF - - UT_T2_I2C - UT_C3_SDSPI: extends: - .unit_test_esp32c3_template diff --git a/components/driver/i2c/i2c.c b/components/driver/i2c/i2c.c index 127a67f124..27ed666d18 100644 --- a/components/driver/i2c/i2c.c +++ b/components/driver/i2c/i2c.c @@ -27,6 +27,7 @@ #include "esp_rom_sys.h" #include #include "soc/clk_tree_defs.h" + #if SOC_I2C_SUPPORT_APB || SOC_I2C_SUPPORT_XTAL #include "esp_private/esp_clk.h" #endif @@ -1343,6 +1344,7 @@ esp_err_t i2c_master_read(i2c_cmd_handle_t cmd_handle, uint8_t *data, size_t dat return ret; } +__attribute__((always_inline)) static inline bool i2c_cmd_is_single_byte(const i2c_cmd_t *cmd) { return cmd->total_bytes == 1; } diff --git a/components/driver/test/CMakeLists.txt b/components/driver/test/CMakeLists.txt deleted file mode 100644 index 2f45c2e841..0000000000 --- a/components/driver/test/CMakeLists.txt +++ /dev/null @@ -1,6 +0,0 @@ -idf_component_register( - SRC_DIRS . - PRIV_INCLUDE_DIRS include - PRIV_REQUIRES test_utils driver nvs_flash esp_timer esp_event test_driver_utils esp_serial_slave_link -) -target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") diff --git a/components/driver/test/include/test/test_adc_dac_dma.h b/components/driver/test/include/test/test_adc_dac_dma.h deleted file mode 100644 index 778b6779ec..0000000000 --- a/components/driver/test/include/test/test_adc_dac_dma.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD - * - * SPDX-License-Identifier: Apache-2.0 - */ - -#pragma once - -/* Common header for ESP32-S2 ADC/DAC tests */ - -/** - * SPI DMA type. - */ -typedef enum { - DMA_ONLY_ADC_INLINK = BIT(1), /*!