I can print strings by calling
Code: Select all
my_printstr(txChan, "This is a string")
Is there a way I can access my UART from any thread, like the regular printstr() function?
Thanks
Code: Select all
my_printstr(txChan, "This is a string")
Code: Select all
int main() {
chan c0, c1, c2;
par {
uart(c0, c1, c2);
producer(c0);
producer(c1);
producer(c2);
}
return 0;
}