forked from espressif/esp-idf
Merge branch 'fix/parlio_tx_c5_test_failure' into 'master'
fix(parlio): fix non-free running test case See merge request espressif/esp-idf!37571
This commit is contained in:
@ -364,8 +364,10 @@ static void test_use_external_non_free_running_clock(parlio_tx_unit_handle_t tx_
|
||||
uint32_t clock_div = config.input_clk_src_freq_hz / config.output_clk_freq_hz;
|
||||
TEST_ESP_OK(parlio_new_tx_unit(&config, &tx_unit));
|
||||
TEST_ESP_OK(parlio_tx_unit_enable(tx_unit));
|
||||
// let core clock running for a while to update the clock divider threshold
|
||||
esp_rom_delay_us(100 * 1000);
|
||||
// let core clock running for a while to update the clock divider threshold, this is a hardware limitation
|
||||
// the following rising edge count is not a magic value, we just need it to be larger than the clock divider value in the previous test case
|
||||
test_gpio_simulate_rising_edge(TEST_EXT_CLK_GPIO, 100);
|
||||
esp_rom_delay_us(1000);
|
||||
parlio_transmit_config_t transmit_config = {
|
||||
.idle_value = 0xAA,
|
||||
};
|
||||
|
@ -1,5 +1,6 @@
|
||||
CONFIG_PM_ENABLE=y
|
||||
CONFIG_FREERTOS_USE_TICKLESS_IDLE=y
|
||||
CONFIG_PM_DFS_INIT_AUTO=y
|
||||
CONFIG_PM_POWER_DOWN_PERIPHERAL_IN_LIGHT_SLEEP=y
|
||||
CONFIG_COMPILER_OPTIMIZATION_SIZE=y
|
||||
CONFIG_BOOTLOADER_COMPILER_OPTIMIZATION_SIZE=y
|
||||
|
Reference in New Issue
Block a user