This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Using multiple UART instances with APP_UART[_FIFO]_INIT()

In the documentation for app_uart_init() - there is a statement indicating:

Function for initializing the UART module. Use this initialization when several instances of the UART module are needed.

It is not clear how multiple instances are managed within the app_uart framework. For example, if I want to call nrf_drv_uart_rx_disable() - I need to pass in an nrf_drv_uart_t instance. It is not clear how I would obtain this when using the app_uart framework.

How can I obtain the nrf_drv_uart_t instance from a UART instance created via app_uart_init() ?

Related