feat(uhci): Add uhci (uart-dma) support on esp32c5, esp32h2

This commit is contained in:
C.S.M
2025-04-28 16:24:42 +08:00
parent f66a750af9
commit f566b500dd
14 changed files with 298 additions and 16 deletions

View File

@@ -19,6 +19,7 @@ extern "C" {
#endif
#define UHCI_LL_GET_HW(num) (((num) == 0) ? (&UHCI0) : (NULL))
#define UHCI_LL_MAX_RECEIVE_PACKET_THRESHOLD (8192)
typedef enum {
UHCI_RX_BREAK_CHR_EOF = 0x1,
@@ -159,6 +160,11 @@ static inline void uhci_ll_rx_set_eof_mode(uhci_dev_t *hw, uint32_t eof_mode)
}
}
static inline void uhci_ll_rx_set_packet_threshold(uhci_dev_t *hw, uint16_t length)
{
hw->pkt_thres.thrs = length;
}
#ifdef __cplusplus
}
#endif