mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-09 20:41:14 +00:00
Merge branch 'feat/support_length_eof' into 'master'
feat(uhci): Add UHCI support on esp32c5, esp32h2. See merge request espressif/esp-idf!38794
This commit is contained in:
@@ -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,
|
||||
@@ -107,6 +108,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.pkt_thrs = length;
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user