Skip to content
New issue

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

UART tx ringbuffer free space (IDFGH-642) #3078

Closed
sh83 opened this issue Feb 20, 2019 · 0 comments
Closed

UART tx ringbuffer free space (IDFGH-642) #3078

sh83 opened this issue Feb 20, 2019 · 0 comments
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally

Comments

@sh83
Copy link

sh83 commented Feb 20, 2019

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.

@Alvin1Zhang Alvin1Zhang changed the title UART tx ringbuffer free space [TW#28892] UART tx ringbuffer free space Feb 21, 2019
@projectgus projectgus changed the title [TW#28892] UART tx ringbuffer free space UART tx ringbuffer free space (IDFGH-642) Mar 12, 2019
@espressif-bot espressif-bot added Resolution: NA Issue resolution is unavailable Status: Done Issue is done internally Resolution: Done Issue is done internally and removed Resolution: NA Issue resolution is unavailable labels Jul 6, 2022
espressif-bot pushed a commit that referenced this issue Jul 15, 2022
ebisuke pushed a commit to ebisuke/esp-idf that referenced this issue Jan 8, 2023
ebisuke pushed a commit to ebisuke/esp-idf that referenced this issue Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Done Issue is done internally Status: Done Issue is done internally
Projects
None yet
Development

No branches or pull requests

2 participants