Esempio n. 1
0
LONG bconin1(void)
{
#if CONF_WITH_MFP_RS232
    /* Wait for character at the serial line */
    while(!bconstat1())
        ;

    /* Return character...
     * FIXME: We ought to use Iorec() for this... */
    return MFP_BASE->udr;
#else
    return 0;
#endif
}
Esempio n. 2
0
LONG bconin1(void)
{
    /* Wait for character at the serial line */
    while(!bconstat1())
        ;

#if CONF_WITH_COLDFIRE_RS232
    return coldfire_rs232_read_byte();
#elif CONF_WITH_MFP_RS232
    /* Return character...
     * FIXME: We ought to use Iorec() for this... */
    return MFP_BASE->udr;
#else
    /* The above loop will never return */
    return 0;
#endif
}