Revision 5fafdf24 hw/pl110_template.h
b/hw/pl110_template.h | ||
---|---|---|
1 |
/*
|
|
1 |
/* |
|
2 | 2 |
* Arm PrimeCell PL110 Color LCD Controller |
3 | 3 |
* |
4 | 4 |
* Copyright (c) 2005 CodeSourcery, LLC. |
... | ... | |
15 | 15 |
#define COPY_PIXEL(to, from) *(to++) = from |
16 | 16 |
#elif BITS == 15 || BITS == 16 |
17 | 17 |
#define COPY_PIXEL(to, from) *(uint16_t *)to = from; to += 2; |
18 |
#elif BITS == 24
|
|
18 |
#elif BITS == 24 |
|
19 | 19 |
#define COPY_PIXEL(to, from) \ |
20 | 20 |
*(to++) = from; *(to++) = (from) >> 8; *(to++) = (from) >> 16 |
21 | 21 |
#elif BITS == 32 |
Also available in: Unified diff