Changeset 88c3151 in mainline for init/init.c
- Timestamp:
- 2006-06-01T15:27:38Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3993b3d
- Parents:
- a2ae4f4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
init/init.c
ra2ae4f4 r88c3151 381 381 ipcarg_t result; 382 382 int phoneid; 383 int vp; 383 384 384 385 // printf("Test: Starting connect...\n"); 385 386 phoneid = ipc_connect_me_to(PHONE_NS, SERVICE_VIDEO, 0);387 386 388 387 while ((phoneid = ipc_connect_me_to(PHONE_NS, SERVICE_VIDEO, 0)) < 0) { … … 391 390 }; 392 391 393 // printf("Test: Connected: %d\n", res); 394 // printf("Test: pinging.\n"); 395 while (1) { 396 res = ipc_call_sync(phoneid, FB_GET_VFB, 0xbeef,&result); 397 // printf("Test: Retval: %d - received: %c\n", res, result); 398 // printf("%c", result); 399 } 400 401 // printf("Test: Hangin up\n"); 392 usleep(100000); 393 vp = ipc_call_sync_3(phoneid, FB_VIEWPORT_CREATE, (200 << 16) | 300, (200 << 16) | 150,0,NULL,NULL,NULL); 394 if (! ipc_call_sync(phoneid, FB_VIEWPORT_SWITCH, vp, NULL)) { 395 ipc_call_sync_2(phoneid, FB_SET_STYLE, 0, 0xffffff, NULL, NULL); 396 ipc_call_sync(phoneid, FB_CLEAR, 0, NULL); 397 ipc_call_sync_3(phoneid, FB_PUTCHAR, 'X', 0,0, NULL, NULL, NULL); 398 } 399 402 400 ipc_hangup(phoneid); 403 401 } … … 448 446 // test_async_kbd(); 449 447 // test_fb(); 450 test_console();448 // test_console(); 451 449 452 450 printf("\nBye.\n");
Note:
See TracChangeset
for help on using the changeset viewer.