/*
 *  disable callback routine of sio port
 */
void
sio_dis_cbr(SIOPCB *siopcb, uint_t cbrtn)
{
    switch (cbrtn) {
        case SIO_RDY_SND:
            uart_disable_send(siopcb->p_siopinib->regs);
            break;
        case SIO_RDY_RCV:
            uart_disable_rcv(siopcb->p_siopinib->regs);
            break;
    }
}
Beispiel #2
0
/*
 *  シリアルI/Oポートからのコールバックの禁止
 */
void
uart_dis_cbr(SIOPCB *siopcb, UINT cbrtn)
{
    switch (cbrtn) {
      case SIO_ERDY_SND:
        uart_disable_send(siopcb);
        break;
      case SIO_ERDY_RCV:
        uart_disable_rcv(siopcb);
        break;
    }
}
static intptr_t uart_dis_cbr(intptr_t cbrtn)
{
    switch (cbrtn) {
    case SIO_RDY_SND:
        uart_snd_cbflg = false;
        uart_disable_send(&UART1);
        break;
    case SIO_RDY_RCV:
        uart_rcv_cbflg = false;
        uart_disable_recv(&UART1);
        break;
    }
    return true;
}