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

Add device teardown methods for lib_uart #26

Open
ed-xmos opened this issue Jun 30, 2022 · 0 comments
Open

Add device teardown methods for lib_uart #26

ed-xmos opened this issue Jun 30, 2022 · 0 comments
Labels
size:S small type:enhancement New feature or request

Comments

@ed-xmos
Copy link
Contributor

ed-xmos commented Jun 30, 2022

We potentially have a request to be able to instantiate UART Rx devices dynamically. Today we have rtos_uart_rx_init() and rtos_uart_rx_start() methods but no rtos_uart_rx_stop() and rtos_uart_rx_deinit().

Currently rtos_uart_rx_init spins off the xcore thread uart_rx_hil_thread and rtos_uart_rx_start enables the ISR and FreeRTOS uart_rx_app_thread. It should be possible to carefully release resources / undo ISR setup and then vTaskDelete both tasks.

The HIL thread underneath already has a uart_rx_deinit() method

Talking to @xmos-jmccarthy would be a good idea as there are likely gotchas in this approach.

@ed-xmos ed-xmos added size:S small type:enhancement New feature or request labels Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:S small type:enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant