diff options
| author | Linus Nielsen Feltzing <linus@haxx.se> | 2005-04-15 09:42:12 +0000 |
|---|---|---|
| committer | Linus Nielsen Feltzing <linus@haxx.se> | 2005-04-15 09:42:12 +0000 |
| commit | a6a01903e6d31f16cffd3b2d7d36c43403bdbcb7 (patch) | |
| tree | b0131ab433de0f82189cb63a125088e1ff81a700 /firmware/export | |
| parent | d1e89d60801c6b5bc5e73b46f0bd07d9cda2288b (diff) | |
| download | rockbox-a6a01903e6d31f16cffd3b2d7d36c43403bdbcb7.zip rockbox-a6a01903e6d31f16cffd3b2d7d36c43403bdbcb7.tar.gz rockbox-a6a01903e6d31f16cffd3b2d7d36c43403bdbcb7.tar.bz2 rockbox-a6a01903e6d31f16cffd3b2d7d36c43403bdbcb7.tar.xz | |
Even more updates to the remote LCD driver. Now it actually works...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6290 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
| -rw-r--r-- | firmware/export/lcd-remote.h | 41 | ||||
| -rw-r--r-- | firmware/export/lcd.h | 3 |
2 files changed, 41 insertions, 3 deletions
diff --git a/firmware/export/lcd-remote.h b/firmware/export/lcd-remote.h new file mode 100644 index 0000000..971468f --- /dev/null +++ b/firmware/export/lcd-remote.h @@ -0,0 +1,41 @@ +/*************************************************************************** + * __________ __ ___. + * Open \______ \ ____ ____ | | _\_ |__ _______ ___ + * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / + * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < + * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ + * \/ \/ \/ \/ \/ + * $Id$ + * + * Copyright (C) 2005 by Richard S. La Charité III + * + * All files in this archive are subject to the GNU General Public License. + * See the file COPYING in the source tree root for full license agreement. + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY + * KIND, either express or implied. + * + ****************************************************************************/ + +#ifndef __LCD_REMOTE_H__ +#define __LCD_REMOTE_H__ + +#ifdef IRIVER_H100 +#include <stdbool.h> +#include "cpu.h" +#include "config.h" + +#define REMOTE_DRAW_PIXEL(x,y) lcd_remote_framebuffer[(y)/8][(x)] |= (1<<((y)&7)) +#define REMOTE_CLEAR_PIXEL(x,y) lcd_remote_framebuffer[(y)/8][(x)] &= ~(1<<((y)&7)) +#define REMOTE_INVERT_PIXEL(x,y) lcd_remote_framebuffer[(y)/8][(x)] ^= (1<<((y)&7)) + +extern void lcd_remote_init(void); +extern void lcd_remote_backlight_on(void); +extern void lcd_remote_backlight_off(void); + +extern unsigned char lcd_remote_framebuffer[LCD_REMOTE_HEIGHT/8][LCD_REMOTE_WIDTH]; + +extern void lcd_remote_bitmap (const unsigned char *src, int x, int y, int nx, int ny, bool clear); + +#endif +#endif diff --git a/firmware/export/lcd.h b/firmware/export/lcd.h index 9fe3ca2..98e2a58 100644 --- a/firmware/export/lcd.h +++ b/firmware/export/lcd.h @@ -65,9 +65,6 @@ extern void lcd_update_rect(int x, int y, int width, int height); #define lcd_update_rect(x,y,w,h) #endif -#ifdef IRIVER_H100 -void lcd_remote_init(void); -#endif #ifdef HAVE_LCD_CHARCELLS /* Icon definitions for lcd_icon() */ |