Nuvoton
/
NuMaker-mbed-emWin-example
NuMaker emWin HMI
tslib/fbutils.h@9:1286ec7f3230, 6 months ago (annotated)
- Committer:
- csyang2
- Date:
- Mon Mar 04 10:01:51 2024 +0800
- Revision:
- 9:1286ec7f3230
- Parent:
- 1:c0f972361605
Add mbed_app.json to set stdio baud-rate as 115200 and update touch for M487
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
csyang2 |
1:c0f972361605 | 1 | /* |
csyang2 |
1:c0f972361605 | 2 | * fbutils.h |
csyang2 |
1:c0f972361605 | 3 | * |
csyang2 |
1:c0f972361605 | 4 | * Headers for utility routines for framebuffer interaction |
csyang2 |
1:c0f972361605 | 5 | * |
csyang2 |
1:c0f972361605 | 6 | * Copyright 2002 Russell King and Doug Lowder |
csyang2 |
1:c0f972361605 | 7 | * |
csyang2 |
1:c0f972361605 | 8 | * This file is placed under the GPL. Please see the |
csyang2 |
1:c0f972361605 | 9 | * file COPYING for details. |
csyang2 |
1:c0f972361605 | 10 | * |
csyang2 |
1:c0f972361605 | 11 | */ |
csyang2 |
1:c0f972361605 | 12 | |
csyang2 |
1:c0f972361605 | 13 | #ifndef _FBUTILS_H |
csyang2 |
1:c0f972361605 | 14 | #define _FBUTILS_H |
csyang2 |
9:1286ec7f3230 | 15 | #if 0 |
csyang2 |
1:c0f972361605 | 16 | //#include <asm/types.h> |
csyang2 |
1:c0f972361605 | 17 | |
csyang2 |
1:c0f972361605 | 18 | /* This constant, being ORed with the color index tells the library |
csyang2 |
1:c0f972361605 | 19 | * to draw in exclusive-or mode (that is, drawing the same second time |
csyang2 |
1:c0f972361605 | 20 | * in the same place will remove the element leaving the background intact). |
csyang2 |
1:c0f972361605 | 21 | */ |
csyang2 |
1:c0f972361605 | 22 | #define XORMODE 0x80000000 |
csyang2 |
1:c0f972361605 | 23 | |
csyang2 |
1:c0f972361605 | 24 | extern unsigned int xres, yres; |
csyang2 |
1:c0f972361605 | 25 | |
csyang2 |
1:c0f972361605 | 26 | void setcolor(unsigned colidx, unsigned value); |
csyang2 |
1:c0f972361605 | 27 | void put_cross(int x, int y, unsigned colidx); |
csyang2 |
1:c0f972361605 | 28 | void put_string(int x, int y, char *s, unsigned colidx); |
csyang2 |
1:c0f972361605 | 29 | void put_string_center(int x, int y, char *s, unsigned colidx); |
csyang2 |
1:c0f972361605 | 30 | void pixel (int x, int y, unsigned colidx); |
csyang2 |
1:c0f972361605 | 31 | void line (int x1, int y1, int x2, int y2, unsigned colidx); |
csyang2 |
1:c0f972361605 | 32 | void rect (int x1, int y1, int x2, int y2, unsigned colidx); |
csyang2 |
1:c0f972361605 | 33 | void fillrect (int x1, int y1, int x2, int y2, unsigned colidx); |
csyang2 |
9:1286ec7f3230 | 34 | #endif |
csyang2 |
1:c0f972361605 | 35 | #endif /* _FBUTILS_H */ |