| 2 |
theseven |
1 |
//
|
|
|
2 |
//
|
|
|
3 |
// Copyright 2010 TheSeven
|
|
|
4 |
//
|
|
|
5 |
//
|
| 427 |
farthen |
6 |
// This file is part of emCORE.
|
| 2 |
theseven |
7 |
//
|
| 427 |
farthen |
8 |
// emCORE is free software: you can redistribute it and/or
|
| 2 |
theseven |
9 |
// modify it under the terms of the GNU General Public License as
|
|
|
10 |
// published by the Free Software Foundation, either version 2 of the
|
|
|
11 |
// License, or (at your option) any later version.
|
|
|
12 |
//
|
| 427 |
farthen |
13 |
// emCORE is distributed in the hope that it will be useful,
|
| 2 |
theseven |
14 |
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
15 |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
16 |
// See the GNU General Public License for more details.
|
|
|
17 |
//
|
|
|
18 |
// You should have received a copy of the GNU General Public License along
|
| 427 |
farthen |
19 |
// with emCORE. If not, see <http://www.gnu.org/licenses/>.
|
| 2 |
theseven |
20 |
//
|
|
|
21 |
//
|
|
|
22 |
|
|
|
23 |
|
|
|
24 |
#ifndef __LCD_H__
|
|
|
25 |
#define __LCD_H__
|
|
|
26 |
|
|
|
27 |
|
|
|
28 |
#include "global.h"
|
|
|
29 |
|
|
|
30 |
|
|
|
31 |
#define LCD_FRAMEBUFSIZE (LCD_WIDTH * LCD_HEIGHT * LCD_BYTESPERPIXEL)
|
|
|
32 |
|
|
|
33 |
|
| 122 |
theseven |
34 |
void lcd_init() INITCODE_ATTR;
|
| 181 |
theseven |
35 |
void lcd_shutdown();
|
| 122 |
theseven |
36 |
int lcd_get_width() ICODE_ATTR;
|
|
|
37 |
int lcd_get_height() ICODE_ATTR;
|
|
|
38 |
int lcd_get_bytes_per_pixel() ICODE_ATTR;
|
| 489 |
theseven |
39 |
int lcd_get_format() ICODE_ATTR;
|
| 122 |
theseven |
40 |
int lcd_translate_color(uint8_t alpha, uint8_t red, uint8_t green, uint8_t blue) ICODE_ATTR;
|
| 492 |
theseven |
41 |
void displaylcd_native(unsigned int startx, unsigned int endx,
|
|
|
42 |
unsigned int starty, unsigned int endy, void* data) ICODE_ATTR;
|
|
|
43 |
void filllcd_native(unsigned int startx, unsigned int endx,
|
|
|
44 |
unsigned int starty, unsigned int endy, int color) ICODE_ATTR;
|
|
|
45 |
void displaylcd(unsigned int x, unsigned int y, unsigned int width,
|
|
|
46 |
unsigned int height, void* data, unsigned int datax,
|
|
|
47 |
unsigned int datay, unsigned int stride) ICODE_ATTR;
|
|
|
48 |
void filllcd(unsigned int x, unsigned int y,
|
|
|
49 |
unsigned int width, unsigned int height, int color) ICODE_ATTR;
|
| 122 |
theseven |
50 |
void displaylcd_sync() ICODE_ATTR;
|
|
|
51 |
bool displaylcd_busy() ICODE_ATTR;
|
|
|
52 |
bool displaylcd_safe() ICODE_ATTR;
|
| 2 |
theseven |
53 |
|
|
|
54 |
|
|
|
55 |
#endif
|