From 9a4ae4c80acc3a2a9e491189aa930a30b786189f Mon Sep 17 00:00:00 2001 From: Lephe Date: Fri, 13 Sep 2019 08:08:22 +0200 Subject: [PATCH] minor new definitions --- include/gint/defs/attributes.h | 3 +++ include/gint/display-cg.h | 5 +++++ include/gint/gray.h | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/include/gint/defs/attributes.h b/include/gint/defs/attributes.h index 791cfac..90c9f3d 100644 --- a/include/gint/defs/attributes.h +++ b/include/gint/defs/attributes.h @@ -34,4 +34,7 @@ #define GCONSTRUCTOR __attribute__((constructor)) #define GDESTRUCTOR __attribute__((destructor)) +/* Functions that do not return */ +#define GNORETURN __attribute__((noreturn)) + #endif /* GINT_DEFS_ATTRIBUTES */ diff --git a/include/gint/display-cg.h b/include/gint/display-cg.h index 1fa04cb..979c375 100644 --- a/include/gint/display-cg.h +++ b/include/gint/display-cg.h @@ -38,6 +38,11 @@ enum { C_DARK = 0x5555, C_BLACK = 0x0000, + /* Other colors */ + C_RED = 0xf800, + C_GREEN = 0x07e0, + C_BLUE = 0x001f, + C_NONE = -1, }; diff --git a/include/gint/gray.h b/include/gint/gray.h index 5def1a0..7d77c71 100644 --- a/include/gint/gray.h +++ b/include/gint/gray.h @@ -64,7 +64,7 @@ void gray_stop(void); 1325 1607 heavy light excellent -------------------------------------------------- - Here are values for this version of gint: + Here are values for this version of gint (for the Graph 35+E II only): LIGHT DARK BLINKING STRIPES COLORS --------------------------------------------------