Hello
In my board I am using an ic as a switch to control the routing of the TX and RX pins of the UART, due to the fact that the nRF9160 does not have more than 4 peripherals available.
For each of the external ic's I have created custom device drivers. Since the drivers are talking to the same UART I am looking for a solution on how I can control the external switch depending on which driver is accessing the UART at each time.
The following picture is a simple block diagram in order to demonstrate the overall connections.
Using this connections I am trying to solve the problem with the limited resources. Is this something feasible? if yes how would I control the control pin of the external switch?
Thank you