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

ble_app_uart threading

Hi,

Just a quick question about how the ble_app_uart works.

When sending to the UART from "static void nus_data_handler(ble_nus_evt_t * p_evt)" and also receiving from the UART in "void uart_event_handle(app_uart_evt_t * p_event)", are these running on different threads as they receive data from different event triggers?

If not on different threads then can these functions ever be executed at the same time? More importantly, if I have a global static uint8_t buffer[2048] and add/remove data from from both functions will this cause me issues?

Thanks.

Related