Changeset 88c3151 in mainline for init/init.c


Ignore:
Timestamp:
2006-06-01T15:27:38Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3993b3d
Parents:
a2ae4f4
Message:

Added most of required functionality to framebuffer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • init/init.c

    ra2ae4f4 r88c3151  
    381381        ipcarg_t result;
    382382        int phoneid;
     383        int vp;
    383384
    384385//      printf("Test: Starting connect...\n");
    385 
    386         phoneid = ipc_connect_me_to(PHONE_NS, SERVICE_VIDEO, 0);
    387386
    388387        while ((phoneid = ipc_connect_me_to(PHONE_NS, SERVICE_VIDEO, 0)) < 0) {
     
    391390        };
    392391       
    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
    402400        ipc_hangup(phoneid);
    403401}
     
    448446//      test_async_kbd();
    449447//      test_fb();
    450         test_console();
     448//      test_console();
    451449
    452450        printf("\nBye.\n");
Note: See TracChangeset for help on using the changeset viewer.