URL
https://opencores.org/ocsvn/or1k/or1k/trunk
[/] [or1k/] [trunk/] [orpmon/] [include/] [screen.h] - Diff between revs 817 and 858
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 817 |
Rev 858 |
Line 13... |
Line 13... |
#define CHARSY (RESY/CHAR_HEIGHT)
|
#define CHARSY (RESY/CHAR_HEIGHT)
|
|
|
#define CRT_REG (CRT_BASE_ADDR + 0)
|
#define CRT_REG (CRT_BASE_ADDR + 0)
|
#define CRT_PALLETE (CRT_BASE_ADDR + 0x400)
|
#define CRT_PALLETE (CRT_BASE_ADDR + 0x400)
|
#define CRT_BUFFER_REG (CRT_BASE_ADDR + 4)
|
#define CRT_BUFFER_REG (CRT_BASE_ADDR + 4)
|
#define PUT_PIXEL(x, y, color) (*(((unsigned char *)FB_BASE_ADDR) + (y) * RESY + (x)) = (color))
|
#define PUT_PIXEL(x, y, color) (*(((unsigned char *)FB_BASE_ADDR) + (y) * RESX + (x)) = (color))
|
#define SET_PALLETE(i, r, g, b) (*(((unsigned long *)CRT_PALLETE) + (i) * 4) = ((r) << 4) | ((g) << 8) | ((b) << 12))
|
#define SET_PALLETE(i, r, g, b) (*(((unsigned long *)CRT_PALLETE) + (i)) = (((r) >> 3) << 11) | (((g) >> 2) << 5) | (((b) >> 3) << 0))
|
|
|
void put_char_xy (int x, int y, char c);
|
void put_char_xy (int x, int y, char c);
|
void put_char (char c);
|
void put_char (char c);
|
void put_string (char *s);
|
void put_string (char *s);
|
void screen_clear (void);
|
void screen_clear (void);
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.