ci(header_check): Add check for public header should not include freertos

This commit is contained in:
C.S.M
2025-11-11 10:05:35 +08:00
parent a63fbe838a
commit d5054072eb
62 changed files with 159 additions and 108 deletions
@@ -207,7 +207,7 @@ esp_err_t sdmmc_host_io_int_enable(int slot);
* - ESP_OK on success (interrupt received)
* - ESP_ERR_TIMEOUT if the interrupt did not occur within timeout_ticks
*/
esp_err_t sdmmc_host_io_int_wait(int slot, TickType_t timeout_ticks);
esp_err_t sdmmc_host_io_int_wait(int slot, uint32_t timeout_ticks);
/**
* @brief Disable SDMMC host and release allocated resources gracefully
@@ -233,7 +233,7 @@ esp_err_t sdmmc_host_io_int_enable(int slot)
return sd_host_slot_enable_io_int(hdl);
}
esp_err_t sdmmc_host_io_int_wait(int slot, TickType_t timeout_ticks)
esp_err_t sdmmc_host_io_int_wait(int slot, uint32_t timeout_ticks)
{
assert(slot == 0 || slot == 1);
sd_host_slot_handle_t hdl = sdmmc_get_slot_handle(slot);
@@ -29,6 +29,7 @@
#include "esp_private/esp_cache_private.h"
#include "esp_private/gpio.h"
#include "esp_private/sd_host_private.h"
#include "freertos/FreeRTOS.h"
typedef struct sd_platform_t {
_lock_t mutex;
@@ -10,6 +10,7 @@
#include "hal/gpio_hal.h"
#include "sdmmc_cmd.h"
#include "sdmmc_test_cd_wp_common.h"
#include "esp_heap_caps.h"
void sdmmc_test_cd_input(int gpio_cd_num, const sdmmc_host_t* config)
{
@@ -9,6 +9,7 @@
#include <sys/time.h>
#include "unity.h"
#include "sdmmc_cmd.h"
#include "esp_heap_caps.h"
#define PATTERN_SEED 0x12345678
#define FLAG_ERASE_TEST_ADJACENT (1 << 0)
@@ -18,6 +18,7 @@
#include "sd_protocol_defs.h"
#include "sdmmc_cmd.h"
#include "sdmmc_test_rw_common.h"
#include "freertos/FreeRTOS.h"
static void do_single_rw_perf_test(sdmmc_card_t* card, size_t start_block,
size_t block_count, size_t alignment, FILE* performance_log,
@@ -7,6 +7,7 @@
#include "unity.h"
#include "sdmmc_cmd.h"
#include "sdmmc_test_begin_end_sd.h"
#include "esp_heap_caps.h"
#define SDMMC_FREQ_CUSTOM_10M 10000