Ignore:
Timestamp:
Apr 2, 2013, 2:23:02 PM (11 years ago)
Author:
cfuguet
Message:

Adding the boot_putc and the boot_getc in the functions
pointer table defined at the beginning of the reset code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/softs/tsar_boot/src/boot_tty.c

    r292 r348  
    22#include <defs.h>
    33
    4 int boot_getc(int *c)
     4int boot_getc(char *c)
    55{
    6         unsigned int* tty_address = (unsigned int*) TTY_BASE;
    7         if (ioread32(&tty_address[TTY_STATUS]) == 0)
    8                 return 0;
     6    unsigned int* tty_address = (unsigned int*) TTY_BASE;
     7    if (ioread32(&tty_address[TTY_STATUS]) == 0)
     8        return 0;
    99
    10         *c = ioread32(&tty_address[TTY_READ]);
    11         return 1;
     10    *c = ioread32(&tty_address[TTY_READ]);
     11    return 1;
    1212}
    1313
     
    2525    {
    2626        if (buffer[n] == 0) break;
    27         boot_putc(buffer[n]);
     27        boot_putc(buffer[n]);
    2828    }
    2929}
Note: See TracChangeset for help on using the changeset viewer.