| 2 |
theseven |
1 |
//
|
|
|
2 |
//
|
|
|
3 |
// Copyright 2010 TheSeven
|
|
|
4 |
//
|
|
|
5 |
//
|
|
|
6 |
// This file is part of emBIOS.
|
|
|
7 |
//
|
|
|
8 |
// emBIOS is free software: you can redistribute it and/or
|
|
|
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 |
//
|
|
|
13 |
// emBIOS is distributed in the hope that it will be useful,
|
|
|
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
|
|
|
19 |
// with emBIOS. If not, see <http://www.gnu.org/licenses/>.
|
|
|
20 |
//
|
|
|
21 |
//
|
|
|
22 |
|
|
|
23 |
|
|
|
24 |
#ifndef __LCDCONSOLE_H__
|
|
|
25 |
#define __LCDCONSOLE_H__
|
|
|
26 |
|
|
|
27 |
|
|
|
28 |
#include "global.h"
|
|
|
29 |
#include "drawing.h"
|
|
|
30 |
#include "lcd.h"
|
|
|
31 |
|
|
|
32 |
|
| 293 |
theseven |
33 |
#define LCDCONSOLE_COLS (FRAMEBUF_WIDTH / FONT_WIDTH)
|
|
|
34 |
#define LCDCONSOLE_ROWS (FRAMEBUF_HEIGHT / FONT_HEIGHT)
|
|
|
35 |
#define LCDCONSOLE_OFFSETX ((FRAMEBUF_WIDTH - LCDCONSOLE_COLS * FONT_WIDTH) / 2)
|
|
|
36 |
#define LCDCONSOLE_OFFSETY ((FRAMEBUF_HEIGHT - LCDCONSOLE_ROWS * FONT_HEIGHT) / 2)
|
| 2 |
theseven |
37 |
|
|
|
38 |
|
|
|
39 |
void lcdconsole_init();
|
|
|
40 |
void lcdconsole_putc(char string, int fgcolor, int bgcolor) ICODE_ATTR;
|
|
|
41 |
void lcdconsole_puts(const char* string, int fgcolor, int bgcolor) ICODE_ATTR;
|
| 25 |
theseven |
42 |
void lcdconsole_write(const char* string, size_t length, int fgcolor, int bgcolor) ICODE_ATTR;
|
| 15 |
theseven |
43 |
void lcdconsole_putc_noblit(char string, int fgcolor, int bgcolor) ICODE_ATTR;
|
|
|
44 |
void lcdconsole_puts_noblit(const char* string, int fgcolor, int bgcolor) ICODE_ATTR;
|
| 25 |
theseven |
45 |
void lcdconsole_write_noblit(const char* string, size_t length, int fgcolor, int bgcolor) ICODE_ATTR;
|
| 2 |
theseven |
46 |
void lcdconsole_update() ICODE_ATTR;
|
| 15 |
theseven |
47 |
void lcdconsole_callback() ICODE_ATTR;
|
| 122 |
theseven |
48 |
int lcdconsole_get_current_x() ICODE_ATTR;
|
|
|
49 |
int lcdconsole_get_current_y() ICODE_ATTR;
|
|
|
50 |
int lcdconsole_get_lineend_x() ICODE_ATTR;
|
|
|
51 |
int lcdconsole_get_lineend_y() ICODE_ATTR;
|
| 2 |
theseven |
52 |
|
|
|
53 |
|
|
|
54 |
#endif
|