summaryrefslogtreecommitdiff
path: root/firmware/export/lcd-charcell.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/lcd-charcell.h')
-rw-r--r--firmware/export/lcd-charcell.h68
1 files changed, 0 insertions, 68 deletions
diff --git a/firmware/export/lcd-charcell.h b/firmware/export/lcd-charcell.h
deleted file mode 100644
index 8dace07d8e..0000000000
--- a/firmware/export/lcd-charcell.h
+++ /dev/null
@@ -1,68 +0,0 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2007 by Jens Arnold
11 *
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.
16 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
21
22#include "config.h"
23
24/* target dependent - to be adjusted for other charcell targets */
25#define HW_PATTERN_SIZE 7 /* number of bytes per pattern */
26#define MAX_HW_PATTERNS 8 /* max. number of user-definable hw patterns */
27
28struct cursor_info {
29 unsigned char hw_char;
30 unsigned char subst_char;
31 bool enabled;
32 bool visible;
33 int x;
34 int y;
35 int divider;
36 int downcount;
37};
38
39/* map unicode characters to hardware or extended lcd characters */
40struct xchar_info {
41 unsigned short ucs;
42 unsigned short glyph;
43 /* 0x0000..0x7fff: fixed extended characters
44 * 0x8000..0xffff: variable extended characters
45 * Dontcare if priority == 0 */
46 unsigned char priority;
47 unsigned char hw_char; /* direct or substitute */
48};
49
50/* track usage of user-definable characters */
51struct pattern_info {
52 short count;
53 unsigned short glyph;
54 unsigned char priority;
55 unsigned char pattern[HW_PATTERN_SIZE];
56};
57
58extern int lcd_pattern_count; /* actual number of user-definable hw patterns */
59
60extern unsigned char lcd_charbuffer[LCD_HEIGHT][LCD_WIDTH];
61extern struct pattern_info lcd_patterns[MAX_HW_PATTERNS];
62extern struct cursor_info lcd_cursor;
63
64extern const struct xchar_info *xchar_info;
65extern int xchar_info_size; /* number of entries */
66extern const unsigned char xfont_fixed[][HW_PATTERN_SIZE];
67
68void lcd_charset_init(void);