smart_e
Newbie level 1
i am uses the two uart0 and uart1.
only one uart is active at a same time.
i implementing both uart in my application.
individually both are working fine.
but the next part is the optional part for communication so that if uart0 is active uart1 is disabled and viseversa.
and i want to use the same buffer for both.
the my concept is that there is a one function in which decision will take place either uart0 or uart1 will active.
then the uart0_tx buffer(),uart1_tx_buffer() function will be select is uart0 or uart1
but how to implement this in my code.
i am using C language.
so how to do this any guide.
only one uart is active at a same time.
i implementing both uart in my application.
individually both are working fine.
but the next part is the optional part for communication so that if uart0 is active uart1 is disabled and viseversa.
and i want to use the same buffer for both.
the my concept is that there is a one function in which decision will take place either uart0 or uart1 will active.
then the uart0_tx buffer(),uart1_tx_buffer() function will be select is uart0 or uart1
but how to implement this in my code.
i am using C language.
so how to do this any guide.