mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 11:17:20 +02:00
change(ble): make falling edge when disabling ts sync
This commit is contained in:
@ -747,10 +747,6 @@ static void spi_out_ts_sync_deinit(void)
|
|||||||
|
|
||||||
static void spi_out_ts_sync_enable(bool enable)
|
static void spi_out_ts_sync_enable(bool enable)
|
||||||
{
|
{
|
||||||
// Reset ts sync io
|
|
||||||
ts_sync_data.io_level = false;
|
|
||||||
gpio_set_level(SPI_OUT_SYNC_IO_NUM, (uint32_t)ts_sync_data.io_level);
|
|
||||||
|
|
||||||
// Update ts sync status
|
// Update ts sync status
|
||||||
ts_sync_enabled = enable;
|
ts_sync_enabled = enable;
|
||||||
if (enable) {
|
if (enable) {
|
||||||
@ -771,8 +767,13 @@ static void spi_out_ts_sync_enable(bool enable)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // !SPI_OUT_TS_SYNC_SLEEP_SUPPORT
|
#endif // !SPI_OUT_TS_SYNC_SLEEP_SUPPORT
|
||||||
|
if (!ts_sync_data.io_level) {
|
||||||
|
gpio_set_level(SPI_OUT_SYNC_IO_NUM, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
ts_sync_data.io_level = 0;
|
||||||
|
gpio_set_level(SPI_OUT_SYNC_IO_NUM, (uint32_t)ts_sync_data.io_level);
|
||||||
|
}
|
||||||
|
|
||||||
static void spi_out_ts_sync_toggle(void)
|
static void spi_out_ts_sync_toggle(void)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user