Mercurial > public > ostc4
annotate Discovery/Src/gfx_colors.c @ 787:aeb72882f30a
Dev Bugfx Empty buffer indication and stability improvments:
The mux prototype used ASCII coding for channel selection while the current realization used real number (0...4) for addressing the mux. The UART read function uses the '0' to indicate an empty buffer element. The mux now loops back '0' used by channel selection causing the read function to process the data. As result data interrups are visible at the display. To avoid this another character has been defined indicate empty buffer locations.
Beside this the functionality has been improved with regard to access speed and better recovery in case of transition failure.
author | Ideenmodellierer |
---|---|
date | Sun, 04 Jun 2023 21:59:26 +0200 |
parents | 1f557e5f4b5a |
children |
rev | line source |
---|---|
38 | 1 /** |
2 ****************************************************************************** | |
3 * @file gfx_colors.c | |
4 * @author heinrichs weikamp gmbh | |
5 * @version V0.0.1 | |
6 * @date 02-May-2014 | |
7 * @brief All colors used are defined here | |
8 * | |
9 @verbatim | |
10 ============================================================================== | |
11 ##### How to use ##### | |
12 ============================================================================== | |
13 @endverbatim | |
14 ****************************************************************************** | |
15 * @attention | |
16 * | |
17 * <h2><center>© COPYRIGHT(c) 2014 heinrichs weikamp</center></h2> | |
18 * | |
19 ****************************************************************************** | |
20 */ | |
21 | |
22 /* Includes ------------------------------------------------------------------*/ | |
23 #include "gfx_colors.h" | |
24 | |
25 /* Exported variables --------------------------------------------------------*/ | |
26 | |
27 /* | |
28 0x0000FF00, gr�n | |
29 0x00FF0000, rot | |
30 0x000000FF, blau | |
31 0x00FFFF00, gelb | |
32 0x0000FFFF, cyan | |
33 0x00000000, black | |
34 0x000092D0, hw hellblau f�r Beschriftun | |
35 */ | |
36 | |
37 | |
38 uint32_t ColorLUT[] = | |
39 { | |
40 // ARGB | |
41 0x00FFFFFF, // \020 wei� | |
525
1f557e5f4b5a
Change color ID used in strings for light grey:
Ideenmodellierer
parents:
506
diff
changeset
|
42 0x00333333, // \021 dark grey |
38 | 43 0x0050FF50, // \022 units |
44 0x003060FF, // \023 blau | |
45 0x00FFFF00, // \024 + CLUT_WarningYellow | |
46 0x00FF0000, // \025 + CLUT_WarningRed | |
47 0x0000FF00, // \026 + CLUT_NiceGreen | |
48 0x00FFFFFF, // \027 DIVE_MainColorIfNotWhite\020 | |
49 0x00FFFFFF, // \030 DIVE_PluginBoxMainColor | |
525
1f557e5f4b5a
Change color ID used in strings for light grey:
Ideenmodellierer
parents:
506
diff
changeset
|
50 0x00777777, // \031 DIVE_PluginBoxGrey also used to display deactivation |
38 | 51 0x0050FF50, // \032 DIVE_LabelColor |
52 0x00FFFFFF, // CLUT_DIVE_FieldSeperatorLines | |
53 0x0050FF50, // CLUT_DIVE_pluginbox // old pink 0x00FF20FF | |
54 0x00FF00FF, // CLUT_NiceBlue descent graph (apnoe) | |
55 0x00FFFFFF, // CLUT_DIVE_SPARE22 - UNUSED | |
56 0x0000FF00, // CLUT_DiveMainLabel - fast nur Debugmode | |
57 0x00555555, // CLUT_pluginboxSurface | |
58 0x00101010, // CLUT_MenuLineUnselected | |
59 0x00000000, // CLUT_MenuLineUnselectedSeperator | |
60 0x00000000, // CLUT_MenuLineSelected | |
61 0x00000000, // CLUT_MenuEditLineSelected | |
62 0x008F8F00, // CLUT_MenuLineSelectedSides | |
63 0x008F8F00, // CLUT_MenuLineSelectedSeperator | |
64 0x00000000, // CLUT_MenuTopBackground | |
65 0x00FFFF00, // CLUT_Group0 - UNUSED | |
66 0x00646464, // CLUT_MenuEditCursor, | |
67 0x008C8C8C, // CLUT_MenuEditInfo, | |
68 0x0068F10D, // CLUT_MenuEditActive, - UNUSED | |
69 0x00FFFFFF, // CLUT_MenuEditButtonColor1, | |
70 0x00FFFFFF, // CLUT_MenuEditFieldRegular, | |
71 0x00000000, // CLUT_MenuEditFieldSelected, | |
72 0x00000000, // CLUT_MenuEditField0, | |
73 0x00FFFFFF, // CLUT_MenuEditField1, | |
74 0x00FFFFFF, // CLUT_MenuEditField2, | |
75 0x00FFFFFF, // CLUT_MenuEditField3, | |
76 0x00FFFFFF, // CLUT_MenuEditField4, | |
77 0x00FFFFFF, // CLUT_MenuEditField5, | |
78 0x00FFFFFF, // CLUT_MenuEditField6, | |
79 0x00FFFFFF, // CLUT_MenuEditField7, | |
80 0x00FFFFFF, // CLUT_MenuEditField8, | |
81 0x00FFFFFF, // CLUT_MenuEditField9, | |
82 0x00FFFFFF, // CLUT_MenuEditDigit, | |
83 0x0000AEFF, // CLUT_MenuPageGasOC | |
84 0x0000AE7D, // CLUT_MenuPageGasCC | |
85 0x00A7D744, // CLUT_MenuPageGasSP | |
86 0x00EEAA00, // CLUT_MenuPageXtra | |
87 0x00FF0000, // CLUT_MenuPageDeco | |
88 0x00FFC000,//0x00C4EACC, // CLUT_MenuPageDecoParameter | |
89 0x00AC00ff,//0x00E5AE18, // CLUT_MenuPageHardware | |
90 0x00ff00ff,//0x00E5AEFF, // CLUT_MenuPageSystem | |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
38
diff
changeset
|
91 0x00FF55FF,//0x00FFFF00, // CLUT_MenuPageCustomView |
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
38
diff
changeset
|
92 0x00C4EACC, // CLUT_MenuPageDivePlanner |
38 | 93 0x00000000, // CLUT_MenuPage10 - UNUSED |
94 0x00FFFFFF, // CLUT_ButtonSymbols | |
95 0x000092D0, // CLUT_InfoSurface | |
96 0x000092D0, // CLUT_InfoDive - UNUSED | |
97 0x000092D0, // CLUT_InfoCompass | |
98 0x00A0A0A0, // CLUT_InfoCursor | |
99 0x008C8C8C, // CLUT_InfoInActive, | |
100 0x0068F10D, // CLUT_InfoActive, | |
101 0x00FFFFFF, // CLUT_InfoButtonColor1, | |
102 0x00FFFFFF, // CLUT_InfoFieldRegular, | |
103 0x00000000, // CLUT_InfoFieldSelected, - UNUSED | |
104 0x00FFFFFF, // CLUT_InfoField0 | |
105 0x00FFFFFF, // CLUT_InfoField1 | |
106 0x00FFFFFF, // CLUT_InfoField2 | |
107 0x00FFFFFF, // CLUT_InfoField3 | |
108 0x00FFFFFF, // CLUT_InfoField4 | |
109 0x00FFFFFF, // CLUT_InfoField5 | |
110 0x00FFFFFF, // CLUT_InfoField6 | |
111 0x00FFFFFF, // CLUT_InfoField7 | |
112 0x00FFFFFF, // CLUT_InfoField8 | |
113 0x00FFFFFF, // CLUT_InfoField9 | |
114 0x003060FF, // CLUT_InfoPageLogbook | |
115 0x00AAAAAA, // CLUT_LogbookGrid, | |
116 0x00FFFFFF, // CLUT_LogbookText | |
117 0x00FF0000, // CLUT_LogbookTemperature | |
118 0x00FF8000, // CLUT_GasSensor0 | |
119 0x00FFFFFF, // CLUT_GasSensor1 | |
120 0x0000FF00, // CLUT_GasSensor2 | |
121 0x00FF0000, // CLUT_GasSensor3 | |
122 0x000000FF, // CLUT_GasSensor4 | |
123 0x00FFFF00, // CLUT_GasSensor5 | |
124 0x0000FFFF, // CLUT_GasSensor6 | |
125 0x00FF00FF, // CLUT_GasSensor7 | |
126 0x00FFFFFF, // CLUT_GasSensor8 | |
127 0x00FFFFFF, // CLUT_GasSensor9 | |
128 0x00FFFFFF, // CLUT_GasSensor10 | |
129 0x00FFFFFF, // CLUT_GasSensor11 | |
130 0x00FFFFFF, // CLUT_GasSensor12 | |
131 0x00FFFFFF, // CLUT_GasSensor13 | |
132 0x00FFFFFF, // CLUT_GasSensor14 | |
133 0x00FFFFFF, // CLUT_GasSensor15 | |
134 0x00FF5050, // CLUT_CompassUserBackHeadingTick | |
135 0x00888888, // CLUT_CompassSubTick | |
136 0x00FFFFFF, // CLUT_CompassNorthTick | |
137 0x0050FF50, // CLUT_CompassUserHeadingTick | |
138 0x0000FF00, // CLUT_EverythingOkayGreen | |
139 0x000092D0, // CLUT_ButtonSurfaceScreen | |
140 0x00FFFFFF, // CLUT_BatteryStandard | |
141 0x0000FF00, // CLUT_BatteryCharging | |
142 0x00FF8000, // CLUT_BatteryProblem | |
143 0x00FFFFFF, // \027 CLUT_MainColor ---------- colorscheme 0 | |
144 0x00FFFFFF, // \030 DIVE_PluginBoxMainColor colorscheme 0 | |
145 0x00777777, // \031 DIVE_PluginBoxGrey colorscheme 0 | |
146 0x0050FF50, // \032 DIVE_LabelColor colorscheme 0 | |
147 0x00FFFFFF, // CLUT_DIVE_FieldSeperatorLines colorscheme 0 | |
148 0x0050FF50, // CLUT_DIVE_pluginbox colorscheme 0 | |
149 0x00FFFFFF, // CLUT_DIVE_SPARE21 colorscheme 0 | |
150 0x00FFFFFF, // CLUT_DIVE_SPARE22 colorscheme 0 | |
151 0x00F29400, // CLUT_MainColor --------------- colorscheme 1 | |
152 0x00F29400, // \030 DIVE_PluginBoxMainColor colorscheme 1 | |
153 0x00E2001A, // \031 DIVE_PluginBoxGrey colorscheme 1 | |
154 0x00E2001A, // \032 DIVE_LabelColor colorscheme 1 | |
155 0x00F29400, // CLUT_DIVE_FieldSeperatorLines colorscheme 1 | |
156 0x00E2001A, // CLUT_DIVE_pluginbox colorscheme 1 | |
157 0x00FFFFFF, // CLUT_DIVE_SPARE21 colorscheme 1 | |
158 0x00FFFFFF, // CLUT_DIVE_SPARE22 colorscheme 1 | |
159 0x0000FF00, // \027 CLUT_MainColor ---------- colorscheme 2 | |
160 0x0000FF00, // \030 DIVE_PluginBoxMainColor colorscheme 2 | |
161 0x0000948D, // \031 DIVE_PluginBoxGrey colorscheme 2 | |
162 0x0000948D, // \032 DIVE_LabelColor colorscheme 2 | |
163 0x0000FF00, // CLUT_DIVE_FieldSeperatorLines colorscheme 2 | |
164 0x0000948D, // CLUT_DIVE_pluginbox colorscheme 2 | |
165 0x00FFFFFF, // CLUT_DIVE_SPARE21 colorscheme 2 | |
166 0x00FFFFFF, // CLUT_DIVE_SPARE22 colorscheme 2 | |
167 0x0033A1D6, // CLUT_MainColor --------------- colorscheme 3 | |
168 0x00FFFFFF, // \030 DIVE_PluginBoxMainColor colorscheme 3 | |
169 0x00777777, // \031 DIVE_PluginBoxGrey colorscheme 3 | |
170 0x000000FF, // \032 DIVE_LabelColor colorscheme 3 | |
171 0x0033A1D6, // CLUT_DIVE_FieldSeperatorLines colorscheme 3 | |
172 0x000000FF, // CLUT_DIVE_pluginbox colorscheme 3 | |
173 0x00FFFFFF, // CLUT_DIVE_SPARE21 colorscheme 3 | |
174 0x00FFFFFF, // CLUT_DIVE_SPARE22 colorscheme 3 | |
175 }; | |
176 | |
177 | |
178 | |
179 | |
180 /* Exported functions --------------------------------------------------------*/ | |
181 |