Changeset c042bdd in mainline for init/init.c


Ignore:
Timestamp:
2006-05-28T23:41:42Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5bd03eb
Parents:
2d1fde3b
Message:

Added support for async_wait_timeout.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • init/init.c

    r2d1fde3b rc042bdd  
    335335        printf("Test: Connected: %d\n", res);
    336336        printf("Test: pinging.\n");
     337
     338        aid = async_send_2(phoneid, KBD_GETCHAR, 0, 0, &kbddata);
    337339        while (1) {
     340                if (async_wait_timeout(aid, NULL, 1000000)) {
     341                        printf("^");
     342                        continue;
     343                }
     344                printf("%c", IPC_GET_ARG1(kbddata));
    338345                aid = async_send_2(phoneid, KBD_GETCHAR, 0, 0, &kbddata);
    339                 async_wait_for(aid, NULL);
    340                 printf("%c", IPC_GET_ARG1(kbddata));
    341346        }
    342347       
     
    434439//      test_pci();
    435440//      test_kbd();
    436         test_time();
    437 //      test_async_kbd();
     441//      test_time();
     442        test_async_kbd();
    438443//      test_fb();
    439444
Note: See TracChangeset for help on using the changeset viewer.