Skip to content

Commit c6e1838

Browse files
committed
feat(driver_spi): c61 eco3 support master rx sample phase config
1 parent a48afb4 commit c6e1838

File tree

1 file changed

+2
-2
lines changed
  • components/hal/esp32c61/include/hal

1 file changed

+2
-2
lines changed

components/hal/esp32c61/include/hal/spi_ll.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -719,15 +719,15 @@ static inline void spi_ll_master_keep_cs(spi_dev_t *hw, int keep_active)
719719
*/
720720
static inline void spi_ll_master_set_rx_timing_mode(spi_dev_t *hw, spi_sampling_point_t sample_point)
721721
{
722-
//This is not supported
722+
hw->clock.clk_edge_sel = (sample_point == SPI_SAMPLING_POINT_PHASE_1);
723723
}
724724

725725
/**
726726
* Get if standard clock mode is supported.
727727
*/
728728
static inline bool spi_ll_master_is_rx_std_sample_supported(void)
729729
{
730-
return false;
730+
return true;
731731
}
732732

733733
/**

0 commit comments

Comments
 (0)