 if (FIFO_READY) cnt = 1;
    }
    else {              <span class="c">/* Transfer call */</span>
        do {    <span class="c">/* Repeat while there is any data to be sent and the stream is ready */</span>
            FIFO_PORT = *p++;
            cnt++;
        } while (cnt &lt; btf &amp;&amp; FIFO_READY);
    }

    return cnt;
}


<span class="c">/*------------------------------------------------------------------------*/</span>
<span class="c">/* Sample code using f_forward function                 