Dave Chapman | 657dcb5 | 2006-08-31 19:19:35 +0000 | [diff] [blame] | 1 | /*************************************************************************** |
| 2 | * __________ __ ___. |
| 3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ |
| 4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / |
| 5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < |
| 6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ |
| 7 | * \/ \/ \/ \/ \/ |
| 8 | * $Id$ |
| 9 | * |
| 10 | * Copyright (C) 2006 by Barry Wardell |
| 11 | * |
Daniel Stenberg | 2acc0ac | 2008-06-28 18:10:04 +0000 | [diff] [blame^] | 12 | * This program is free software; you can redistribute it and/or |
| 13 | * modify it under the terms of the GNU General Public License |
| 14 | * as published by the Free Software Foundation; either version 2 |
| 15 | * of the License, or (at your option) any later version. |
Dave Chapman | 657dcb5 | 2006-08-31 19:19:35 +0000 | [diff] [blame] | 16 | * |
| 17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY |
| 18 | * KIND, either express or implied. |
| 19 | * |
| 20 | ****************************************************************************/ |
| 21 | #include "config.h" |
| 22 | #include "cpu.h" |
| 23 | #include "lcd.h" |
| 24 | #include "kernel.h" |
| 25 | #include "system.h" |
| 26 | |
| 27 | /*** hardware configuration ***/ |
| 28 | |
| 29 | void lcd_set_contrast(int val) |
| 30 | { |
| 31 | /* TODO: Implement lcd_set_contrast() */ |
| 32 | (void)val; |
| 33 | } |
| 34 | |
| 35 | void lcd_set_invert_display(bool yesno) |
| 36 | { |
| 37 | /* TODO: Implement lcd_set_invert_display() */ |
| 38 | (void)yesno; |
| 39 | } |
| 40 | |
| 41 | /* turn the display upside down (call lcd_update() afterwards) */ |
| 42 | void lcd_set_flip(bool yesno) |
| 43 | { |
| 44 | /* TODO: Implement lcd_set_flip() */ |
| 45 | (void)yesno; |
| 46 | } |
| 47 | |
| 48 | /* LCD init */ |
| 49 | void lcd_init_device(void) |
| 50 | { |
| 51 | |
| 52 | } |
| 53 | |
| 54 | /*** update functions ***/ |
| 55 | |
Dave Chapman | 657dcb5 | 2006-08-31 19:19:35 +0000 | [diff] [blame] | 56 | /* Performance function to blit a YUV bitmap directly to the LCD */ |
Jens Arnold | 68a2168 | 2008-03-24 00:35:53 +0000 | [diff] [blame] | 57 | void lcd_blit_yuv(unsigned char * const src[3], |
Dave Chapman | 657dcb5 | 2006-08-31 19:19:35 +0000 | [diff] [blame] | 58 | int src_x, int src_y, int stride, |
| 59 | int x, int y, int width, int height) |
| 60 | { |
| 61 | (void)src; |
| 62 | (void)src_x; |
| 63 | (void)src_y; |
| 64 | (void)stride; |
| 65 | (void)x; |
| 66 | (void)y; |
| 67 | (void)width; |
| 68 | (void)height; |
| 69 | } |
| 70 | |
| 71 | /* Update a fraction of the display. */ |
| 72 | void lcd_update_rect(int x0, int y0, int width, int height) |
| 73 | { |
| 74 | (void)x0; |
| 75 | (void)y0; |
| 76 | (void)width; |
| 77 | (void)height; |
| 78 | } |
| 79 | |
| 80 | /* Update the display. |
| 81 | This must be called after all other LCD functions that change the display. */ |
| 82 | void lcd_update(void) |
| 83 | { |
| 84 | lcd_update_rect(0, 0, LCD_WIDTH, LCD_HEIGHT); |
| 85 | } |