Exemplo n.º 1
0
/*
 *  enable callback routine of sio port
 */
void
sio_ena_cbr(SIOPCB *siopcb, uint_t cbrtn)
{
    switch (cbrtn) {
        case SIO_RDY_SND:
            uart_enable_send(siopcb->p_siopinib->regs);
            break;
        case SIO_RDY_RCV:
            uart_enable_rcv(siopcb->p_siopinib->regs);
            break;
    }
}
Exemplo n.º 2
0
/*
 *  シリアルI/Oポートからのコールバックの許可
 */
void
uart_ena_cbr(SIOPCB *siopcb, UINT cbrtn)
{
    switch (cbrtn) {
        case SIO_ERDY_SND:
            uart_enable_send(siopcb);
            break;
        case SIO_ERDY_RCV:
            uart_enable_rcv(siopcb);
            break;
    }
}
Exemplo n.º 3
0
static intptr_t uart_ena_cbr(intptr_t cbrtn)
{
    switch (cbrtn) {
    case SIO_RDY_SND:
        uart_snd_cbflg = true;
        uart_enable_send(&UART1);
        break;
    case SIO_RDY_RCV:
        uart_rcv_cbflg = true;
        uart_enable_recv(&UART1);
        break;
    }
    return true;
}