1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
|
//==========================================================================
//
// framebuf.c
//
// Generic API for accessing framebuffers
//
//==========================================================================
// ####ECOSGPLCOPYRIGHTBEGIN####
// -------------------------------------------
// This file is part of eCos, the Embedded Configurable Operating System.
// Copyright (C) 2008 Free Software Foundation, Inc.
//
// eCos is free software; you can redistribute it and/or modify it under
// the terms of the GNU General Public License as published by the Free
// Software Foundation; either version 2 or (at your option) any later
// version.
//
// eCos is distributed in the hope that it will be useful, but WITHOUT
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
// for more details.
//
// You should have received a copy of the GNU General Public License
// along with eCos; if not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
//
// As a special exception, if other files instantiate templates or use
// macros or inline functions from this file, or you compile this file
// and link it with other works to produce a work based on this file,
// this file does not by itself cause the resulting work to be covered by
// the GNU General Public License. However the source code for this file
// must still be made available in accordance with section (3) of the GNU
// General Public License v2.
//
// This exception does not invalidate any other reasons why a work based
// on this file might be covered by the GNU General Public License.
// -------------------------------------------
// ####ECOSGPLCOPYRIGHTEND####
//==========================================================================
//###DESCRIPTIONBEGIN####
//
// Author(s): bartv
// Date: 2005-03-29
//
//###DESCRIPTIONEND####
//========================================================================
#define __CYG_FB_IN_FRAMEBUF_C 1
#include <cyg/io/framebuf.h>
#include <cyg/infra/cyg_type.h>
#include <cyg/infra/cyg_ass.h>
#include <errno.h>
// Implementations of the framebuffer functions. Production code
// normally uses extern inline versions of these, defined in
// framebuf.h. However real functions are supplied here in case
// higher-level code chooses to take the address of a function for
// some reason. Also when building for debugging (CYGPKG_INFRA_DEBUG)
// the inline functions are suppressed and the real functions here
// contain lots of useful assertions.
int
cyg_fb_on(cyg_fb* fb)
{
int result;
CYG_CHECK_DATA_PTRC(fb);
CYG_PRECONDITIONC(CYG_FB_MAGIC == fb->fb_magic);
CYG_CHECK_FUNC_PTRC(fb->fb_on_fn);
CYG_CHECK_FUNC_PTRC(fb->fb_off_fn);
CYG_CHECK_FUNC_PTRC(fb->fb_write_pixel_fn);
CYG_CHECK_FUNC_PTRC(fb->fb_read_pixel_fn);
CYG_CHECK_FUNC_PTRC(fb->fb_write_hline_fn);
CYG_CHECK_FUNC_PTRC(fb->fb_write_vline_fn);
CYG_CHECK_FUNC_PTRC(fb->fb_fill_block_fn);
CYG_CHECK_FUNC_PTRC(fb->fb_write_block_fn);
CYG_CHECK_FUNC_PTRC(fb->fb_read_block_fn);
CYG_CHECK_FUNC_PTRC(fb->fb_move_block_fn);
result = (*(fb->fb_on_fn))(fb);
return result;
}
int
cyg_fb_off(cyg_fb* fb)
{
int result;
CYG_CHECK_DATA_PTRC(fb);
CYG_PRECONDITIONC(CYG_FB_MAGIC == fb->fb_magic);
CYG_CHECK_FUNC_PTRC(fb->fb_off_fn);
result = (*(fb->fb_off_fn))(fb);
return result;
}
void
cyg_fb_write_pixel(cyg_fb* fb, cyg_ucount16 x, cyg_ucount16 y, cyg_fb_colour colour)
{
CYG_CHECK_DATA_PTRC(fb);
CYG_PRECONDITIONC(CYG_FB_MAGIC == fb->fb_magic);
CYG_CHECK_FUNC_PTRC(fb->fb_write_pixel_fn);
CYG_PRECONDITIONC(x < fb->fb_width);
CYG_PRECONDITIONC(y < fb->fb_height);
CYG_PRECONDITIONC((colour <= 1) || (fb->fb_depth > 1));
CYG_PRECONDITIONC((colour <= 3) || (fb->fb_depth > 2));
CYG_PRECONDITIONC((colour <= 15) || (fb->fb_depth > 4));
CYG_PRECONDITIONC((colour <= 255) || (fb->fb_depth > 8));
CYG_PRECONDITIONC((colour <= 65535) || (fb->fb_depth > 16));
(*(fb->fb_write_pixel_fn))(fb, x, y, colour);
}
cyg_fb_colour
cyg_fb_read_pixel(cyg_fb* fb, cyg_ucount16 x, cyg_ucount16 y)
{
CYG_CHECK_DATA_PTRC(fb);
CYG_PRECONDITIONC(CYG_FB_MAGIC == fb->fb_magic);
CYG_CHECK_FUNC_PTRC(fb->fb_read_pixel_fn);
CYG_PRECONDITIONC(x < fb->fb_width);
CYG_PRECONDITIONC(y < fb->fb_height);
return (*(fb->fb_read_pixel_fn))(fb, x, y);
}
void
cyg_fb_write_hline(cyg_fb* fb, cyg_ucount16 x, cyg_ucount16 y, cyg_ucount16 len, cyg_fb_colour colour)
{
CYG_CHECK_DATA_PTRC(fb);
CYG_PRECONDITIONC(CYG_FB_MAGIC == fb->fb_magic);
CYG_CHECK_FUNC_PTRC(fb->fb_write_hline_fn);
CYG_PRECONDITIONC(x < fb->fb_width);
CYG_PRECONDITIONC(y < fb->fb_height);
CYG_PRECONDITIONC((x + len) <= fb->fb_width);
CYG_PRECONDITIONC((colour <= 1) || (fb->fb_depth > 1));
CYG_PRECONDITIONC((colour <= 3) || (fb->fb_depth > 2));
CYG_PRECONDITIONC((colour <= 15) || (fb->fb_depth > 4));
CYG_PRECONDITIONC((colour <= 255) || (fb->fb_depth > 8));
CYG_PRECONDITIONC((colour <= 65535) || (fb->fb_depth > 16));
(*(fb->fb_write_hline_fn))(fb, x, y, len, colour);
}
void
cyg_fb_write_vline(cyg_fb* fb, cyg_ucount16 x, cyg_ucount16 y, cyg_ucount16 len, cyg_fb_colour colour)
{
CYG_CHECK_DATA_PTRC(fb);
CYG_PRECONDITIONC(CYG_FB_MAGIC == fb->fb_magic);
CYG_CHECK_FUNC_PTRC(fb->fb_write_vline_fn);
CYG_PRECONDITIONC(x < fb->fb_width);
CYG_PRECONDITIONC(y < fb->fb_height);
CYG_PRECONDITIONC((y + len) <= fb->fb_height);
CYG_PRECONDITIONC((colour <= 1) || (fb->fb_depth > 1));
CYG_PRECONDITIONC((colour <= 3) || (fb->fb_depth > 2));
CYG_PRECONDITIONC((colour <= 15) || (fb->fb_depth > 4));
CYG_PRECONDITIONC((colour <= 255) || (fb->fb_depth > 8));
CYG_PRECONDITIONC((colour <= 65535) || (fb->fb_depth > 16));
(*(fb->fb_write_vline_fn))(fb, x, y, len, colour);
}
void
cyg_fb_fill_block(cyg_fb* fb, cyg_ucount16 x, cyg_ucount16 y, cyg_ucount16 width, cyg_ucount16 height, cyg_fb_colour colour)
{
CYG_CHECK_DATA_PTRC(fb);
CYG_PRECONDITIONC(CYG_FB_MAGIC == fb->fb_magic);
CYG_CHECK_FUNC_PTRC(fb->fb_fill_block_fn);
CYG_PRECONDITIONC(x < fb->fb_width);
CYG_PRECONDITIONC(y < fb->fb_height);
CYG_PRECONDITIONC((x + width) <= fb->fb_width);
CYG_PRECONDITIONC((y + height) <= fb->fb_height);
CYG_PRECONDITIONC((colour <= 1) || (fb->fb_depth > 1));
CYG_PRECONDITIONC((colour <= 3) || (fb->fb_depth > 2));
CYG_PRECONDITIONC((colour <= 15) || (fb->fb_depth > 4));
CYG_PRECONDITIONC((colour <= 255) || (fb->fb_depth > 8));
CYG_PRECONDITIONC((colour <= 65535) || (fb->fb_depth > 16));
(*(fb->fb_fill_block_fn))(fb, x, y, width, height, colour);
}
void
cyg_fb_write_block(cyg_fb* fb, cyg_ucount16 x, cyg_ucount16 y, cyg_ucount16 width, cyg_ucount16 height,
const void* source, cyg_ucount16 offset, cyg_ucount16 stride)
{
CYG_CHECK_DATA_PTRC(fb);
CYG_PRECONDITIONC(CYG_FB_MAGIC == fb->fb_magic);
CYG_CHECK_FUNC_PTRC(fb->fb_write_block_fn);
CYG_CHECK_DATA_PTRC(source);
CYG_PRECONDITIONC(x < fb->fb_width);
CYG_PRECONDITIONC(y < fb->fb_height);
CYG_PRECONDITIONC((x + width) <= fb->fb_width);
CYG_PRECONDITIONC((y + height) <= fb->fb_height);
(*(fb->fb_write_block_fn))(fb, x, y, width, height, source, offset, stride);
}
void
cyg_fb_read_block(cyg_fb* fb, cyg_ucount16 x, cyg_ucount16 y, cyg_ucount16 width, cyg_ucount16 height,
void* dest, cyg_ucount16 offset, cyg_ucount16 stride)
{
CYG_CHECK_DATA_PTRC(fb);
CYG_PRECONDITIONC(CYG_FB_MAGIC == fb->fb_magic);
CYG_CHECK_FUNC_PTRC(fb->fb_read_block_fn);
CYG_CHECK_DATA_PTRC(dest);
CYG_PRECONDITIONC(x < fb->fb_width);
CYG_PRECONDITIONC(y < fb->fb_height);
CYG_PRECONDITIONC((x + width) <= fb->fb_width);
CYG_PRECONDITIONC((y + height) <= fb->fb_height);
(*(fb->fb_read_block_fn))(fb, x, y, width, height, dest, offset, stride);
}
void
cyg_fb_move_block(cyg_fb* fb, cyg_ucount16 x, cyg_ucount16 y, cyg_ucount16 width, cyg_ucount16 height, cyg_ucount16 new_x, cyg_ucount16 new_y)
{
CYG_CHECK_DATA_PTRC(fb);
CYG_PRECONDITIONC(CYG_FB_MAGIC == fb->fb_magic);
CYG_CHECK_FUNC_PTRC(fb->fb_move_block_fn);
CYG_PRECONDITIONC(x != new_x);
CYG_PRECONDITIONC(y != new_y);
CYG_PRECONDITIONC(x < fb->fb_width);
CYG_PRECONDITIONC(y < fb->fb_height);
CYG_PRECONDITIONC((x + width) <= fb->fb_width);
CYG_PRECONDITIONC((y + height) <= fb->fb_height);
CYG_PRECONDITIONC(new_x < fb->fb_width);
CYG_PRECONDITIONC(new_y < fb->fb_height);
CYG_PRECONDITIONC((new_x + width) <= fb->fb_width);
CYG_PRECONDITIONC((new_y + height) <= fb->fb_height);
(*(fb->fb_move_block_fn))(fb, x, y, width, height, new_x, new_y);
}
int
cyg_fb_ioctl(cyg_fb* fb, cyg_uint16 key, void* data, size_t* len)
{
int result;
CYG_CHECK_DATA_PTRC(fb);
CYG_PRECONDITIONC(CYG_FB_MAGIC == fb->fb_magic);
CYG_CHECK_FUNC_PTRC(fb->fb_ioctl_fn);
result = (*(fb->fb_ioctl_fn))(fb, key, data, len);
return result;
}
void
cyg_fb_synch(cyg_fb* fb, cyg_ucount16 when)
{
#ifdef CYGHWR_IO_FRAMEBUF_FUNCTIONALITY_DOUBLE_BUFFER
CYG_CHECK_DATA_PTRC(fb);
CYG_PRECONDITIONC(CYG_FB_MAGIC == fb->fb_magic);
CYG_CHECK_FUNC_PTRC(fb->fb_move_block_fn);
(*(fb->fb_synch_fn))(fb, when);
#else
// Synch is a no-op
#endif
}
void
cyg_fb_read_palette(cyg_fb* fb, cyg_ucount32 first, cyg_ucount32 count, void* dest)
{
#ifdef CYGHWR_IO_FRAMEBUF_FUNCTIONALITY_PALETTE
CYG_CHECK_DATA_PTRC(fb);
CYG_PRECONDITIONC(CYG_FB_MAGIC == fb->fb_magic);
CYG_CHECK_FUNC_PTRC(fb->fb_read_palette_fn);
CYG_CHECK_DATA_PTRC(dest);
CYG_PRECONDITIONC( (first < 16) || (fb->fb_depth > 4));
CYG_PRECONDITIONC(((first + count) < 16) || (fb->fb_depth > 4));
CYG_PRECONDITIONC( (first < 256) || (fb->fb_depth > 8));
CYG_PRECONDITIONC(((first + count) <= 256) || (fb->fb_depth > 8));
(*(fb->fb_read_palette_fn))(fb, first, count, dest);
#else
CYG_UNUSED_PARAM(cyg_fb*, fb);
CYG_UNUSED_PARAM(cyg_ucount32, first);
CYG_UNUSED_PARAM(cyg_ucount32, count);
CYG_UNUSED_PARAM(void*, dest);
#endif
}
void
cyg_fb_write_palette(cyg_fb* fb, cyg_ucount32 first, cyg_ucount32 count, const void* source, cyg_ucount16 when)
{
#ifdef CYGHWR_IO_FRAMEBUF_FUNCTIONALITY_WRITEABLE_PALETTE
CYG_CHECK_DATA_PTRC(fb);
CYG_PRECONDITIONC(CYG_FB_MAGIC == fb->fb_magic);
CYG_CHECK_FUNC_PTRC(fb->fb_write_palette_fn);
CYG_CHECK_DATA_PTRC(source);
CYG_PRECONDITIONC( (first < 16) || (fb->fb_depth > 4));
CYG_PRECONDITIONC(((first + count) < 16) || (fb->fb_depth > 4));
CYG_PRECONDITIONC( (first < 256) || (fb->fb_depth > 8));
CYG_PRECONDITIONC(((first + count) <= 256) || (fb->fb_depth > 8));
(*(fb->fb_write_palette_fn))(fb, first, count, source, when);
#else
CYG_UNUSED_PARAM(cyg_fb*, fb);
CYG_UNUSED_PARAM(cyg_ucount32, first);
CYG_UNUSED_PARAM(cyg_ucount32, count);
CYG_UNUSED_PARAM(const void*, source);
CYG_UNUSED_PARAM(cyg_ucount16, when);
#endif
}
cyg_fb_colour
cyg_fb_make_colour(cyg_fb* fb, cyg_ucount8 r, cyg_ucount8 g, cyg_ucount8 b)
{
#ifdef CYGHWR_IO_FRAMEBUF_FUNCTIONALITY_TRUE_COLOUR
CYG_CHECK_DATA_PTRC(fb);
CYG_PRECONDITIONC(CYG_FB_MAGIC == fb->fb_magic);
CYG_CHECK_FUNC_PTRC(fb->fb_make_colour_fn);
CYG_PRECONDITIONC((r <= 0x00FF) && (g <= 0x00FF) && (b <= 0x00FF));
return (*(fb->fb_make_colour_fn))(fb, r, g, b);
#else
CYG_UNUSED_PARAM(cyg_fb*, fb);
CYG_UNUSED_PARAM(cyg_ucount8, r);
CYG_UNUSED_PARAM(cyg_ucount8, g);
CYG_UNUSED_PARAM(cyg_ucount8, b);
return 0;
#endif
}
void
cyg_fb_break_colour(cyg_fb* fb, cyg_fb_colour colour, cyg_ucount8* r, cyg_ucount8* g, cyg_ucount8* b)
{
#ifdef CYGHWR_IO_FRAMEBUF_FUNCTIONALITY_TRUE_COLOUR
CYG_CHECK_DATA_PTRC(fb);
CYG_PRECONDITIONC(CYG_FB_MAGIC == fb->fb_magic);
CYG_CHECK_FUNC_PTRC(fb->fb_break_colour_fn);
CYG_CHECK_DATA_PTRC(r);
CYG_CHECK_DATA_PTRC(g);
CYG_CHECK_DATA_PTRC(b);
(*(fb->fb_break_colour_fn))(fb, colour, r, g, b);
#else
CYG_UNUSED_PARAM(cyg_fb*, fb);
CYG_UNUSED_PARAM(cyg_fb_colour, colour);
CYG_UNUSED_PARAM(cyg_ucount8*, r);
CYG_UNUSED_PARAM(cyg_ucount8*, g);
CYG_UNUSED_PARAM(cyg_ucount8*, b);
#endif
}
// ----------------------------------------------------------------------------
// Dummy functions for use by device drivers when instantiating a cyg_fb
// structure
int
cyg_fb_nop_on(cyg_fb* fb)
{
CYG_UNUSED_PARAM(cyg_fb*, fb);
return 0;
}
int
cyg_fb_nop_off(cyg_fb* fb)
{
CYG_UNUSED_PARAM(cyg_fb*, fb);
return 0;
}
int
cyg_fb_nop_ioctl(cyg_fb* fb, cyg_uint16 key, void* data, size_t* len)
{
CYG_UNUSED_PARAM(cyg_fb*, fb);
CYG_UNUSED_PARAM(cyg_uint16, key);
CYG_UNUSED_PARAM(void*, data);
CYG_UNUSED_PARAM(size_t*, len);
return ENOSYS;
}
void
cyg_fb_nop_synch(cyg_fb* fb, cyg_ucount16 when)
{
CYG_UNUSED_PARAM(cyg_fb*, fb);
CYG_UNUSED_PARAM(cyg_ucount16, when);
}
void
cyg_fb_nop_write_palette(cyg_fb* fb, cyg_ucount32 first, cyg_ucount32 count, const void* source, cyg_ucount16 when)
{
CYG_UNUSED_PARAM(cyg_fb*, fb);
CYG_UNUSED_PARAM(cyg_ucount32, first);
CYG_UNUSED_PARAM(cyg_ucount32, count);
CYG_UNUSED_PARAM(const void*, source);
CYG_UNUSED_PARAM(cyg_ucount16, when);
}
void
cyg_fb_nop_read_palette(cyg_fb* fb, cyg_ucount32 first, cyg_ucount32 count, void* dest)
{
CYG_UNUSED_PARAM(cyg_fb*, fb);
CYG_UNUSED_PARAM(cyg_ucount32, first);
CYG_UNUSED_PARAM(cyg_ucount32, count);
CYG_UNUSED_PARAM(void*, dest);
}
cyg_fb_colour
cyg_fb_nop_make_colour(cyg_fb* fb, cyg_ucount8 r, cyg_ucount8 g, cyg_ucount8 b)
{
CYG_UNUSED_PARAM(cyg_fb*, fb);
CYG_UNUSED_PARAM(cyg_ucount8, r);
CYG_UNUSED_PARAM(cyg_ucount8, g);
CYG_UNUSED_PARAM(cyg_ucount8, b);
return 0;
}
cyg_fb_colour
cyg_fb_nop_make_color(cyg_fb* fb, cyg_ucount8 r, cyg_ucount8 g, cyg_ucount8 b)
__attribute__((alias("cyg_fb_nop_make_colour")));
void
cyg_fb_nop_break_colour(cyg_fb* fb, cyg_fb_colour colour, cyg_ucount8* r, cyg_ucount8* g, cyg_ucount8* b)
{
CYG_UNUSED_PARAM(cyg_fb*, fb);
CYG_UNUSED_PARAM(cyg_fb_colour, colour);
CYG_UNUSED_PARAM(cyg_ucount8*, r);
CYG_UNUSED_PARAM(cyg_ucount8*, g);
CYG_UNUSED_PARAM(cyg_ucount8*, b);
}
void
cyg_fb_nop_break_color(cyg_fb* fb, cyg_fb_colour colour, cyg_ucount8* r, cyg_ucount8* g, cyg_ucount8* b)
__attribute__((alias("cyg_fb_nop_break_colour")));
// ----------------------------------------------------------------------------
// Utility functions for common true colour modes
cyg_fb_colour
cyg_fb_dev_make_colour_8bpp_true_332(cyg_fb* fb, cyg_ucount8 r, cyg_ucount8 g, cyg_ucount8 b)
{
CYG_UNUSED_PARAM(cyg_fb*, fb);
return CYG_FB_MAKE_COLOUR_8BPP_TRUE_332(r, g, b);
}
void
cyg_fb_dev_break_colour_8bpp_true_332(cyg_fb* fb, cyg_fb_colour colour, cyg_ucount8* r, cyg_ucount8* g, cyg_ucount8* b)
{
CYG_UNUSED_PARAM(cyg_fb*, fb);
CYG_FB_BREAK_COLOUR_8BPP_TRUE_332(colour, r, g, b);
}
cyg_fb_colour
cyg_fb_dev_make_colour_16bpp_true_565(cyg_fb* fb, cyg_ucount8 r, cyg_ucount8 g, cyg_ucount8 b)
{
CYG_UNUSED_PARAM(cyg_fb*, fb);
return CYG_FB_MAKE_COLOUR_16BPP_TRUE_565(r, g, b);
}
void
cyg_fb_dev_break_colour_16bpp_true_565(cyg_fb* fb, cyg_fb_colour colour, cyg_ucount8* r, cyg_ucount8* g, cyg_ucount8* b)
{
CYG_UNUSED_PARAM(cyg_fb*, fb);
CYG_FB_BREAK_COLOUR_16BPP_TRUE_565(colour, r, g, b);
}
cyg_fb_colour
cyg_fb_dev_make_colour_16bpp_true_555(cyg_fb* fb, cyg_ucount8 r, cyg_ucount8 g, cyg_ucount8 b)
{
CYG_UNUSED_PARAM(cyg_fb*, fb);
return CYG_FB_MAKE_COLOUR_16BPP_TRUE_555(r, g, b);
}
void
cyg_fb_dev_break_colour_16bpp_true_555(cyg_fb* fb, cyg_fb_colour colour, cyg_ucount8* r, cyg_ucount8* g, cyg_ucount8* b)
{
CYG_UNUSED_PARAM(cyg_fb*, fb);
CYG_FB_BREAK_COLOUR_16BPP_TRUE_555(colour, r, g, b);
}
cyg_fb_colour
cyg_fb_dev_make_colour_32bpp_true_0888(cyg_fb* fb, cyg_ucount8 r, cyg_ucount8 g, cyg_ucount8 b)
{
CYG_UNUSED_PARAM(cyg_fb*, fb);
return CYG_FB_MAKE_COLOUR_32BPP_TRUE_0888(r, g, b);
}
void
cyg_fb_dev_break_colour_32bpp_true_0888(cyg_fb* fb, cyg_fb_colour colour, cyg_ucount8* r, cyg_ucount8* g, cyg_ucount8* b)
{
CYG_UNUSED_PARAM(cyg_fb*, fb);
CYG_FB_BREAK_COLOUR_32BPP_TRUE_0888(colour, r, g, b);
}
|