Mercurial > hg > Members > yutaka > manager
diff include/fb.h @ 5:39d405bc46b7
add fb
author | yutaka@localhost.localdomain |
---|---|
date | Sat, 10 Apr 2010 16:29:22 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/include/fb.h Sat Apr 10 16:29:22 2010 +0900 @@ -0,0 +1,33 @@ +#ifndef FB_H +#define FB_H + +#define DEVICE_NAME "/dev/fb0" +#define DIV_BYTE 8 + +#include <unistd.h> +#include <stdio.h> +#include <fcntl.h> +#include <linux/fb.h> +#include <linux/fs.h> +#include <sys/mman.h> +#include <sys/ioctl.h> +#include <stdlib.h> +#include <iostream> + +typedef struct { + + char *pixels; + int size; + int width; + int height; + int bpp; + int fd; + +} fb_t; + +/* function prototype */ +void send_current_error_msg(const char *ptr); +void send_current_information(const char *ptr); +fb_t get_fbdev_addr(void); + +#endif