Declare, define and initialize data structure for avail. kbd colors

This commit is contained in:
Richard Sailer 2019-08-06 01:53:36 +02:00
parent 8385cfa2df
commit 79eb89923e

View file

@ -65,6 +65,32 @@ MODULE_VERSION("1.0.0");
#define COLOR_CYAN 0x00FFFF #define COLOR_CYAN 0x00FFFF
#define COLOR_WHITE 0xFFFFFF #define COLOR_WHITE 0xFFFFFF
struct color_t {
u32 code;
char* name;
};
struct color_list_t {
uint size;
struct color_t colors[];
};
struct color_list_t color_list = {
.size = 8,
.colors = {
{ .name = "BLACK", .code = 0x000000 },
{ .name = "RED", .code = 0xFF0000 },
{ .name = "GREEN", .code = 0x00FF00 },
{ .name = "BLUE", .code = 0x0000FF },
{ .name = "YELLOW", .code = 0xFFFF00 },
{ .name = "MAGENTA", .code = 0xFF00FF },
{ .name = "CYAN", .code = 0x00FFFF },
{ .name = "WHITE", .code = 0xFFFFFF },
}
};
#define KB_COLOR_DEFAULT COLOR_WHITE // Default Color White #define KB_COLOR_DEFAULT COLOR_WHITE // Default Color White
#define DEFAULT_BLINKING_PATTERN 0 #define DEFAULT_BLINKING_PATTERN 0