You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/esp_driver_uart/include/driver/uhci.h
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,7 @@ typedef struct {
24
24
size_tmax_transmit_size; /*!< Maximum transfer size in one transaction, in bytes. This decides the number of DMA nodes will be used for each transaction */
25
25
size_tmax_receive_internal_mem; /*!< Maximum transfer size in one transaction, in bytes. Each DMA node can point to a maximum of 4096 bytes. This value determines the number of DMA nodes used for each transaction. When your transfer size is large enough, it is recommended to set this value greater than 4096 to facilitate efficient ping-pong operations, such as 10 * 1024. */
26
26
size_tdma_burst_size; /*!< DMA burst size, in bytes */
27
+
size_tmax_packet_receive; /*!< Max receive size, auto stop receiving after reach this value, only valid when `length_eof` set true */
27
28
28
29
struct {
29
30
uint16_trx_brk_eof: 1; /*!< UHCI will end payload receive process when NULL frame is received by UART. */
ESP_RETURN_ON_FALSE(uhci_ctrl, ESP_ERR_NO_MEM, TAG, "no mem for uhci controller handle");
459
+
if (config->rx_eof_flags.length_eof) {
460
+
ESP_RETURN_ON_FALSE(config->max_packet_receive<UHCI_LL_MAX_RECEIVE_PACKET_THRESHOLD, ESP_ERR_INVALID_ARG, TAG, "max receive packet is over threshold");
0 commit comments