UART library: ready_to_transmit() Topic is solved

If you have a simple question and just want an answer.
DemoniacMilk
XCore Addict
Posts: 191
Joined: Tue Jul 05, 2016 2:19 pm

UART library: ready_to_transmit()

Post by DemoniacMilk »

When using the UART Library I was not able to send data at first.
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
}
The notification seemed to never be triggered. I searched for ready_to_transmit in all files of the UART libraries sources and could not find it.

Did I forget something or is the notification never set?
View Solution
User avatar
larry
Respected Member
Posts: 275
Joined: Fri Mar 12, 2010 6:03 pm

Post by larry »

It does indeed look that ready_to_transmit is unimplemented. Could you raise this as an issue on Github please?

https://github.com/xmos/lib_uart/issues