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

Is there any several instances of the UART example here?

I want to make 2 UARTs data pass-through by the way of two instance of app_uart_init() func.

Parents
  • There's only one UART on the chip so you can't have two instances at the same time. And if you look at the app_uart code you'll see all the variables are static and are set up on init to whatever the init values are.

    You can init() it then close() it again and re-init() with new values but that's about it.

    What are you trying to do?

Reply
  • There's only one UART on the chip so you can't have two instances at the same time. And if you look at the app_uart code you'll see all the variables are static and are set up on init to whatever the init values are.

    You can init() it then close() it again and re-init() with new values but that's about it.

    What are you trying to do?

Children
Related