Ignore:
Timestamp:
Jul 4, 2012, 2:51:18 PM (12 years ago)
Author:
alain
Message:

Introducing various modifications in kernel initialisation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/apps/pgcd/main.c

    r160 r165  
    77    unsigned int opy;
    88
    9     tty_printf(" Interactive PGCD \n");
     9    giet_tty_printf(" Interactive PGCD \n");
    1010
    1111    while (1)
    1212    {
    13         tty_printf("\n*******************\n");
    14         tty_printf("operand X = ");
    15         tty_getw_irq(&opx);
    16         tty_printf("\n");
    17         tty_printf("operand Y = ");
    18         tty_getw_irq(&opy);
    19         tty_printf("\n");
     13        giet_tty_printf("\n*******************\n");
     14        giet_tty_printf("operand X = ");
     15        giet_tty_getw( &opx );
     16        giet_tty_printf("\n");
     17        giet_tty_printf("operand Y = ");
     18        giet_tty_getw( &opy );
     19        giet_tty_printf("\n");
    2020        if( (opx == 0) || (opy == 0) )
    2121        {
    22             tty_printf("operands must be larger than 0\n");
     22            giet_tty_printf("operands must be larger than 0\n");
    2323        }
    2424        else
     
    2929                else            opy = opy - opx;
    3030            }
    31             tty_printf("pgcd      = %d\n", opx);
     31            giet_tty_printf("pgcd      = %d\n", opx);
    3232        }
    3333    }
Note: See TracChangeset for help on using the changeset viewer.