Dear Members,
I saw this example,
I can not find this example on SDK 17,
How can I use UARTE0 and UARTE1 on separate port ? one is for debugging via USB and the other one for communicating with GPS UART ?
Any suggestions ?
Thanks
Dear Members,
I saw this example,
I can not find this example on SDK 17,
How can I use UARTE0 and UARTE1 on separate port ? one is for debugging via USB and the other one for communicating with GPS UART ?
Any suggestions ?
Thanks
I have enabled UARTE1 1
//========================================================== // <h> nrf_libuarte_drv - libUARTE library //========================================================== // <q> NRF_LIBUARTE_DRV_HWFC_ENABLED - Enable HWFC support in the driver #ifndef NRF_LIBUARTE_DRV_HWFC_ENABLED #define NRF_LIBUARTE_DRV_HWFC_ENABLED 0 #endif // <q> NRF_LIBUARTE_DRV_UARTE0 - UARTE0 instance #ifndef NRF_LIBUARTE_DRV_UARTE0 #define NRF_LIBUARTE_DRV_UARTE0 1 #endif // <q> NRF_LIBUARTE_DRV_UARTE1 - UARTE1 instance #ifndef NRF_LIBUARTE_DRV_UARTE1 #define NRF_LIBUARTE_DRV_UARTE1 1 #endif // </h> //==========================================================
I have enabled UARTE1 1
//========================================================== // <h> nrf_libuarte_drv - libUARTE library //========================================================== // <q> NRF_LIBUARTE_DRV_HWFC_ENABLED - Enable HWFC support in the driver #ifndef NRF_LIBUARTE_DRV_HWFC_ENABLED #define NRF_LIBUARTE_DRV_HWFC_ENABLED 0 #endif // <q> NRF_LIBUARTE_DRV_UARTE0 - UARTE0 instance #ifndef NRF_LIBUARTE_DRV_UARTE0 #define NRF_LIBUARTE_DRV_UARTE0 1 #endif // <q> NRF_LIBUARTE_DRV_UARTE1 - UARTE1 instance #ifndef NRF_LIBUARTE_DRV_UARTE1 #define NRF_LIBUARTE_DRV_UARTE1 1 #endif // </h> //==========================================================
err_code = nrf_libuarte_async_init(&libuarte, &nrf_libuarte_async_config, uart_event_handler, (void *)&libuarte);
err_code = nrf_libuarte_async_init(&libuarte1, &nrf_libuarte_async_config1, uart_event_handler1, (void *)&libuarte1);