Rev 1435 | Rev 1445 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1435 | Rev 1441 | ||
---|---|---|---|
Line 332... | Line 332... | ||
332 | while ((phoneid = ipc_connect_me_to(PHONE_NS, SERVICE_KEYBOARD, 0)) < 0) { |
332 | while ((phoneid = ipc_connect_me_to(PHONE_NS, SERVICE_KEYBOARD, 0)) < 0) { |
333 | }; |
333 | }; |
334 | 334 | ||
335 | printf("Test: Connected: %d\n", res); |
335 | printf("Test: Connected: %d\n", res); |
336 | printf("Test: pinging.\n"); |
336 | printf("Test: pinging.\n"); |
- | 337 | ||
- | 338 | aid = async_send_2(phoneid, KBD_GETCHAR, 0, 0, &kbddata); |
|
337 | while (1) { |
339 | while (1) { |
338 | aid = async_send_2(phoneid, KBD_GETCHAR, 0, 0, &kbddata); |
340 | if (async_wait_timeout(aid, NULL, 1000000)) { |
339 | async_wait_for(aid, NULL); |
341 | printf("^"); |
- | 342 | continue; |
|
- | 343 | } |
|
340 | printf("%c", IPC_GET_ARG1(kbddata)); |
344 | printf("%c", IPC_GET_ARG1(kbddata)); |
- | 345 | aid = async_send_2(phoneid, KBD_GETCHAR, 0, 0, &kbddata); |
|
341 | } |
346 | } |
342 | 347 | ||
343 | printf("Test: Hangin up\n"); |
348 | printf("Test: Hangin up\n"); |
344 | ipc_hangup(phoneid); |
349 | ipc_hangup(phoneid); |
345 | } |
350 | } |
Line 431... | Line 436... | ||
431 | // test_hangup(); |
436 | // test_hangup(); |
432 | // test_slam(); |
437 | // test_slam(); |
433 | // test_as_area_send(); |
438 | // test_as_area_send(); |
434 | // test_pci(); |
439 | // test_pci(); |
435 | // test_kbd(); |
440 | // test_kbd(); |
436 | test_time(); |
441 | // test_time(); |
437 | // test_async_kbd(); |
442 | test_async_kbd(); |
438 | // test_fb(); |
443 | // test_fb(); |
439 | 444 | ||
440 | printf("Hello\nThis is Init\n\nBye."); |
445 | printf("Hello\nThis is Init\n\nBye."); |
441 | 446 | ||
442 | 447 |