feat(dsi): add timeout check for lp cmd rx

This commit is contained in:
Chen Jichang
2026-09-02 16:22:57 +08:00
parent 5e8921d589
commit 68e7e33873
7 changed files with 47 additions and 18 deletions
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2023-2024 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2023-2026 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -665,6 +665,17 @@ static inline bool mipi_dsi_host_ll_gen_is_read_cmd_busy(dsi_host_dev_t *dev)
return dev->cmd_pkt_status.gen_rd_cmd_busy;
}
/**
* @brief Has the low-power reception timed out?
*
* @param dev Pointer to the DSI Host controller register base address
* @return True if low-power reception timed out, False otherwise
*/
static inline bool mipi_dsi_host_ll_is_lp_rx_timeout(dsi_host_dev_t *dev)
{
return dev->int_st1.to_lp_rx;
}
/**
* @brief Is the read payload FIFO of the generic interface full?
*