mirror of
https://github.com/espressif/esp-idf.git
synced 2026-08-13 04:42:01 +03:00
fix(parlio_rx): fixed opposite sample edge issue
Closes https://github.com/espressif/esp-idf/issues/18012
This commit is contained in:
@@ -248,8 +248,9 @@ static inline void parlio_ll_rx_start_soft_recv(parl_io_dev_t *dev, bool en)
|
||||
*/
|
||||
static inline void parlio_ll_rx_set_sample_clock_edge(parl_io_dev_t *dev, parlio_sample_edge_t edge)
|
||||
{
|
||||
dev->rx_clk_cfg.rx_clk_i_inv = edge;
|
||||
dev->rx_clk_cfg.rx_clk_o_inv = edge;
|
||||
bool invert = edge == PARLIO_SAMPLE_EDGE_NEG;
|
||||
dev->rx_clk_cfg.rx_clk_i_inv = invert;
|
||||
dev->rx_clk_cfg.rx_clk_o_inv = invert;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -489,8 +490,9 @@ static inline void parlio_ll_tx_treat_msb_as_valid(parl_io_dev_t *dev, bool en)
|
||||
*/
|
||||
static inline void parlio_ll_tx_set_sample_clock_edge(parl_io_dev_t *dev, parlio_sample_edge_t edge)
|
||||
{
|
||||
dev->tx_clk_cfg.tx_clk_i_inv = edge;
|
||||
dev->tx_clk_cfg.tx_clk_o_inv = edge;
|
||||
bool invert = edge == PARLIO_SAMPLE_EDGE_NEG;
|
||||
dev->tx_clk_cfg.tx_clk_i_inv = invert;
|
||||
dev->tx_clk_cfg.tx_clk_o_inv = invert;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -320,8 +320,9 @@ static inline void parlio_ll_rx_start_soft_recv(parl_io_dev_t *dev, bool en)
|
||||
__attribute__((always_inline))
|
||||
static inline void parlio_ll_rx_set_sample_clock_edge(parl_io_dev_t *dev, parlio_sample_edge_t edge)
|
||||
{
|
||||
dev->rx_clk_cfg.rx_clk_i_inv = edge;
|
||||
dev->rx_clk_cfg.rx_clk_o_inv = edge;
|
||||
bool invert = edge == PARLIO_SAMPLE_EDGE_NEG;
|
||||
dev->rx_clk_cfg.rx_clk_i_inv = invert;
|
||||
dev->rx_clk_cfg.rx_clk_o_inv = invert;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -632,8 +633,9 @@ static inline void parlio_ll_tx_treat_msb_as_valid(parl_io_dev_t *dev, bool en)
|
||||
*/
|
||||
static inline void parlio_ll_tx_set_sample_clock_edge(parl_io_dev_t *dev, parlio_sample_edge_t edge)
|
||||
{
|
||||
dev->tx_clk_cfg.tx_clk_i_inv = edge;
|
||||
dev->tx_clk_cfg.tx_clk_o_inv = edge;
|
||||
bool invert = edge == PARLIO_SAMPLE_EDGE_NEG;
|
||||
dev->tx_clk_cfg.tx_clk_i_inv = invert;
|
||||
dev->tx_clk_cfg.tx_clk_o_inv = invert;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user