diff 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
line wrap: on
line diff
--- a/Discovery/Inc/gfx_fonts.h	Sun Nov 29 11:41:03 2020 +0100
+++ b/Discovery/Inc/gfx_fonts.h	Mon Nov 30 20:52:49 2020 +0100
@@ -77,6 +77,7 @@
 /* TODO: Looking at older map files the directories should be placed within the firmware memory */
 /*       As well as the image data => to be confirmed */ 
 #define UPPER_FONT_DIRECTORY __attribute__ (( used, section(".upper_font_directory") ))
+#define LOWER_FONT_DIRECTORY __attribute__ (( used, section(".lower_font_directory") ))	/* store new fonts within firmware image to avoid fontlib update */
 
 #define UPPER_IMAGE_DIRECTORY __attribute__(( section(".lower_image_directory") ))
 #define UPPER_IMAGES          __attribute__(( section(".lower_images") ))