Mercurial > public > ostc4
comparison Discovery/Inc/gfx_fonts.h @ 569:3508e6dc4f22
Added new section "lower.font":
To avoid section overlap caused by the memory needs of the new characters, a new section has been introduced to store the font data behind the code and data sections. The handling is a little bit overengineered but was used to have the same look as the upper section, where a defined structure had to be rebuild to match the output of another compiler. moving the lower section behind the upper would save firmware space but result in the need of a new fontlib version.
author | Ideenmodellierer |
---|---|
date | Mon, 30 Nov 2020 20:52:49 +0100 |
parents | 1c95f811967c |
children | bc6c90e20d9e |
comparison
equal
deleted
inserted
replaced
568:1eee6fb108cb | 569:3508e6dc4f22 |
---|---|
75 | 75 |
76 // Macro to store in UPPER rom font sections | 76 // Macro to store in UPPER rom font sections |
77 /* TODO: Looking at older map files the directories should be placed within the firmware memory */ | 77 /* TODO: Looking at older map files the directories should be placed within the firmware memory */ |
78 /* As well as the image data => to be confirmed */ | 78 /* As well as the image data => to be confirmed */ |
79 #define UPPER_FONT_DIRECTORY __attribute__ (( used, section(".upper_font_directory") )) | 79 #define UPPER_FONT_DIRECTORY __attribute__ (( used, section(".upper_font_directory") )) |
80 #define LOWER_FONT_DIRECTORY __attribute__ (( used, section(".lower_font_directory") )) /* store new fonts within firmware image to avoid fontlib update */ | |
80 | 81 |
81 #define UPPER_IMAGE_DIRECTORY __attribute__(( section(".lower_image_directory") )) | 82 #define UPPER_IMAGE_DIRECTORY __attribute__(( section(".lower_image_directory") )) |
82 #define UPPER_IMAGES __attribute__(( section(".lower_images") )) | 83 #define UPPER_IMAGES __attribute__(( section(".lower_images") )) |
83 | 84 |
84 #endif // GFX_FONTS_H | 85 #endif // GFX_FONTS_H |