#include <unistd.h>#include <fcntl.h>#include <sys/ioctl.h>#include <stdio.h>#include <stdlib.h>Go to the source code of this file.
Classes | |
| struct | display_update_info |
Defines | |
| #define | FBIO_IOCTL_BASE 'v' |
| #define | FBIO_ERASE_WHITE _IOW(FBIO_IOCTL_BASE, 2, struct display_update_info) |
| #define | WAVEFORM_4BPP_IMAGE 1 |
Functions | |
| int | main (int argc, char *argv[]) |
| #define FBIO_ERASE_WHITE _IOW(FBIO_IOCTL_BASE, 2, struct display_update_info) |
| #define FBIO_IOCTL_BASE 'v' |
| int main | ( | int | argc, | |
| char * | argv[] | |||
| ) |
Definition at line 40 of file blank.c.
00041 { 00042 int fbdev; 00043 int ret; 00044 struct display_update_info updateinfo; 00045 00046 fbdev = open ("/dev/fb0", O_RDWR); 00047 00048 if (fbdev == -1) 00049 { 00050 printf("Error opening framebufferdevice. # mknod /dev/fb0 c 29 0\n"); 00051 exit(-1); 00052 } 00053 00054 updateinfo.waveform = WAVEFORM_4BPP_IMAGE; 00055 updateinfo.sequence = 0; 00056 00057 if ((ret=ioctl(fbdev, FBIO_ERASE_WHITE, &updateinfo))) 00058 { 00059 printf("Error sending FBIO_ERASE_WHITE: %x\n",ret); 00060 exit(-1); 00061 } 00062 00063 close(fbdev); 00064 00065 return 0; 00066 }
1.5.6