We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am writing ardupilot hal for the esp32 series mcu (https://github.com/sh83/ardupilot/tree/esp32/libraries/AP_HAL_ESP32) During uart driver development I was found what it is impossible to estimate amount of the avaliable tx ringbuffer space. This method is required in the ardupilot hal api (https://github.com/ArduPilot/ardupilot/blob/910de89b4e8b9b223af972fc682951afd998a4f5/libraries/AP_HAL/utility/BetterStream.h#L48), so for now I have to use internal buffers and move data back and forth in the dedicated thread.
There is function like esp_err_t uart_get_tx_free_space_len(uart_port_t uart_num, size_t* size);
esp_err_t uart_get_tx_free_space_len(uart_port_t uart_num, size_t* size);
No way to estimate free size of the tx ringbuffer.
The text was updated successfully, but these errors were encountered:
9d73475
uart: Add a new API to get the free space size of tx buffer
f4d33d2
Closes #8932 Closes #3078 (cherry picked from commit 9d73475)
fe6b264
Closes espressif#8932 Closes espressif#3078 (cherry picked from commit 9d73475)
2bf73b3
No branches or pull requests
Problem Description
I am writing ardupilot hal for the esp32 series mcu (https://github.com/sh83/ardupilot/tree/esp32/libraries/AP_HAL_ESP32)
During uart driver development I was found what it is impossible to estimate amount of the avaliable tx ringbuffer space. This method is required in the ardupilot hal api (https://github.com/ArduPilot/ardupilot/blob/910de89b4e8b9b223af972fc682951afd998a4f5/libraries/AP_HAL/utility/BetterStream.h#L48), so for now I have to use internal buffers and move data back and forth in the dedicated thread.
Expected Behavior
There is function like
esp_err_t uart_get_tx_free_space_len(uart_port_t uart_num, size_t* size);
Actual Behavior
No way to estimate free size of the tx ringbuffer.
The text was updated successfully, but these errors were encountered: