mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
fix(driver_spi): master set idle pin level for all data pin
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2022-2025 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2022-2026 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
@@ -239,13 +239,16 @@ static inline void spi_ll_slave_hd_init(spi_dev_t *hw)
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine and unify the default level of mosi line when bus free
|
||||
* Determine and unify the default level of data line when bus idle
|
||||
*
|
||||
* @param hw Beginning address of the peripheral registers.
|
||||
*/
|
||||
static inline void spi_ll_set_mosi_free_level(spi_dev_t *hw, bool level)
|
||||
static inline void spi_ll_set_data_pin_idle_level(spi_dev_t *hw, bool level)
|
||||
{
|
||||
hw->ctrl.d_pol = level; //set default level for MOSI only on IDLE state
|
||||
hw->ctrl.d_pol = level;
|
||||
hw->ctrl.q_pol = level;
|
||||
hw->ctrl.wp_pol = level;
|
||||
hw->ctrl.hold_pol = level;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user