OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_43/] [or1ksim/] [peripheral/] [16450.c] - Diff between revs 492 and 529

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 492 Rev 529
Line 482... Line 482...
    if (uarts[i].regs.mcr & UART_MCR_LOOP) {
    if (uarts[i].regs.mcr & UART_MCR_LOOP) {
      uarts[i].iregs.rxser = uarts[i].iregs.loopback;
      uarts[i].iregs.rxser = uarts[i].iregs.loopback;
      uarts[i].istat.rxser_full = 1;
      uarts[i].istat.rxser_full = 1;
    } else {
    } else {
      if (!config.uarts[i].vapi_id) {
      if (!config.uarts[i].vapi_id) {
        if((retval = fgetc(uarts[i].rxfs)) != EOF)
        if(uarts[i].istat.rxser_full == 0) {
 
          if((retval = fgetc(uarts[i].rxfs)) != EOF) {
          uarts[i].iregs.rxser = (char)retval;
          uarts[i].iregs.rxser = (char)retval;
        uarts[i].istat.rxser_full = 1;
        uarts[i].istat.rxser_full = 1;
 
          }
 
        }
      } else { /* VAPI */
      } else { /* VAPI */
        int received = 0;
        int received = 0;
        /* do not handle commands while receiving */
        /* do not handle commands while receiving */
        if (uarts[i].istat.rxser_full)
        if (uarts[i].istat.rxser_full)
          break;
          break;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.