blob: bf29ba092eb30910647bfc64a73a8d58d4a2497e [file] [log] [blame]
Dave Chapman657dcb52006-08-31 19:19:35 +00001/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2006 by Barry Wardell
11 *
Daniel Stenberg2acc0ac2008-06-28 18:10:04 +000012 * 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 Chapman657dcb52006-08-31 19:19:35 +000016 *
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
29void lcd_set_contrast(int val)
30{
31 /* TODO: Implement lcd_set_contrast() */
32 (void)val;
33}
34
35void 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) */
42void lcd_set_flip(bool yesno)
43{
44 /* TODO: Implement lcd_set_flip() */
45 (void)yesno;
46}
47
48/* LCD init */
49void lcd_init_device(void)
50{
51
52}
53
54/*** update functions ***/
55
Dave Chapman657dcb52006-08-31 19:19:35 +000056/* Performance function to blit a YUV bitmap directly to the LCD */
Jens Arnold68a21682008-03-24 00:35:53 +000057void lcd_blit_yuv(unsigned char * const src[3],
Dave Chapman657dcb52006-08-31 19:19:35 +000058 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. */
72void 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. */
82void lcd_update(void)
83{
84 lcd_update_rect(0, 0, LCD_WIDTH, LCD_HEIGHT);
85}