I was trying to send out data as fast as possible by reacting to ready_to_transmit() in a while(1)/Select block.
Code: Select all
[[combinable]]
void uartTx(client interface uart_tx_buffered_if tx_if){
unsigned char i = 65;
// for debug
printstrln("uart TX started");
tx_if.write(i++);
tx_if.write(i++);
while(1){
select{
case tx_if.ready_to_transmit():
tx_if.write(i++);
if (i>90)
i = 65;
break;
} //select
} //while
}
Did I forget something or is the notification never set?