Changeset 51c1b003 in mainline for init/init.c
- Timestamp:
- 2006-05-29T13:34:40Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 854387b
- Parents:
- d1e70c7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
init/init.c
rd1e70c7 r51c1b003 306 306 307 307 printf("Test: Starting connect...\n"); 308 while ((phoneid = ipc_connect_me_to(PHONE_NS, SERVICE_ KEYBOARD, 0)) < 0) {308 while ((phoneid = ipc_connect_me_to(PHONE_NS, SERVICE_CONSOLE, 0)) < 0) { 309 309 }; 310 310 311 311 printf("Test: Connected: %d\n", res); 312 312 printf("Test: pinging.\n"); 313 while (1) { 313 /* while (1) { 314 314 315 res = ipc_call_sync(phoneid, KBD_GETCHAR, 0xbeef,&result); 315 316 // printf("Test: Retval: %d - received: %c\n", res, result); 316 317 printf("%c", result); 317 318 } 318 319 */ 319 320 printf("Test: Hangin up\n"); 320 321 ipc_hangup(phoneid); … … 336 337 printf("Test: pinging.\n"); 337 338 338 aid = async_send_2(phoneid, KBD_GETCHAR, 0, 0, &kbddata); 339 339 340 while (1) { 340 if (async_wait_timeout(aid, NULL, 1000000)) {341 printf("^");342 continue;343 }344 printf("%c", IPC_GET_ARG1(kbddata));345 aid = async_send_2(phoneid, KBD_GETCHAR, 0, 0, &kbddata);346 341 } 347 342
Note:
See TracChangeset
for help on using the changeset viewer.