diff options
Diffstat (limited to 'apps/core_asmdefs.c')
-rw-r--r-- | apps/core_asmdefs.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/apps/core_asmdefs.c b/apps/core_asmdefs.c new file mode 100644 index 0000000000..f0847b2254 --- /dev/null +++ b/apps/core_asmdefs.c | |||
@@ -0,0 +1,17 @@ | |||
1 | #include <config.h> | ||
2 | #include <bmp.h> | ||
3 | |||
4 | /* To export a value for use in assembly files, define an int or unsigned here | ||
5 | * named AD_<name> and include apps/core_asmdefs.h in the assembly file. | ||
6 | * Identifiers without the AD_ prefix will be ignored, and can be used to | ||
7 | * create instances of structs for finding offsets to individual members. | ||
8 | */ | ||
9 | |||
10 | |||
11 | /* Size of a pixel with 8-bit components. */ | ||
12 | const int AD_pix8_size = | ||
13 | #ifdef HAVE_LCD_COLOR | ||
14 | sizeof(struct uint8_rgb); | ||
15 | #else | ||
16 | 1; | ||
17 | #endif | ||