This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

difference between components/libraries/uart and drivers_nrf/uart

Hi there,

I am starting with nrf52 and SDK 9.0.2 and am struggling with the SDK structure.

Can anyone please explain the difference between

components/libraries/uart and drivers_nrf/uart

Why are there two different UART drivers? What should be used? They differ e.g. in app_uart_init:

// drivers_nrf/uart/app_uart.c
uint32_t app_uart_init(const app_uart_comm_params_t * p_comm_params,
                         app_uart_buffers_t *     p_buffers,
                         app_uart_event_handler_t event_handler,
                         app_irq_priority_t       irq_priority,
                         uint16_t *               p_app_uart_uid)


// libraries/uart/app_uart.c
uint32_t app_uart_init(const app_uart_comm_params_t * p_comm_params,
                       app_uart_buffers_t           * p_buffers,
                       app_uart_event_handler_t       event_handler,
                       app_irq_priority_t             irq_priority)

Is there an introduction of the different parts and folders of the SDK and the intended use?

Related