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

nrf_libuarte_async_rx_free ?

Dear Member,

I want to call nrf_libuarte_async_rx_free from another file outside main.c

nrf_libuarte_async_rx_free(&libuarte1, (uint8_t *)&GPS.rxTmp, 1);

I got  

..\..\..\GPS-Lib\GPS_lib.c(35): error:  #20: identifier "libuarte1" is undefined

I have included 

#include "nrf_libuarte_async.h"

in GPS_lib.c

and

NRF_LIBUARTE_ASYNC_DEFINE(libuarte1, 1, 2, 2, NRF_LIBUARTE_PERIPHERAL_NOT_USED, 255, 3);

in main.c ,

How can I rectify it ?

Thanks

Parents Reply Children
Related