Mercurial > public > ostc4
comparison BootLoader/Src/tInfoBootloader.c @ 1016:0dd92e9b70a2 BootloaderOstc5
Bootloader use compressed fonts:
The previous Bootloader was larger than 128k => not fitting into the first sectors of the second flash bank. Most memory is occupied by the two fonts in use. In order to make the bootloader small enough for the bootloader update function the fonts need to be compressed. To avoid code changes in visualization functions the compressed fonts are decompressed into RAM and then used in the same way as before.
| author | Ideenmodellierer |
|---|---|
| date | Wed, 28 May 2025 17:20:44 +0200 |
| parents | 7801c5d8a562 |
| children |
comparison
equal
deleted
inserted
replaced
| 1015:4ef0511c6665 | 1016:0dd92e9b70a2 |
|---|---|
| 94 uint32_t backup = tIBscreen.FBStartAdress; | 94 uint32_t backup = tIBscreen.FBStartAdress; |
| 95 | 95 |
| 96 tIBscreen.FBStartAdress = getFrame(18); | 96 tIBscreen.FBStartAdress = getFrame(18); |
| 97 line = 1; | 97 line = 1; |
| 98 if(text) | 98 if(text) |
| 99 GFX_write_string(&FontT48, &tIBwindow, text,line); | 99 GFX_write_string(&FontT48min, &tIBwindow, text,line); |
| 100 line++; | 100 line++; |
| 101 | 101 |
| 102 if(*textButtonLeft) | 102 if(*textButtonLeft) |
| 103 write_content_simple(&tIBscreen, 0, 800, 480-24, &FontT24,textButtonLeft,CLUT_ButtonSurfaceScreen); | 103 write_content_simple(&tIBscreen, 0, 800, 480-24, &FontT24min,textButtonLeft,CLUT_ButtonSurfaceScreen); |
| 104 if(*textButtonMid) | 104 if(*textButtonMid) |
| 105 write_content_simple(&tIBscreen, 0, 800, 480-24, &FontT24,textButtonMid,CLUT_ButtonSurfaceScreen); | 105 write_content_simple(&tIBscreen, 0, 800, 480-24, &FontT24min,textButtonMid,CLUT_ButtonSurfaceScreen); |
| 106 if(*textButtonRight) | 106 if(*textButtonRight) |
| 107 write_content_simple(&tIBscreen, 0, 800, 480-24, &FontT24,textButtonRight,CLUT_ButtonSurfaceScreen); | 107 write_content_simple(&tIBscreen, 0, 800, 480-24, &FontT24min,textButtonRight,CLUT_ButtonSurfaceScreen); |
| 108 | 108 |
| 109 GFX_SetFrameTop(tIBscreen.FBStartAdress); | 109 GFX_SetFrameTop(tIBscreen.FBStartAdress); |
| 110 GFX_change_LTDC(); | 110 GFX_change_LTDC(); |
| 111 | 111 |
| 112 if(backup != 0) | 112 if(backup != 0) |
| 119 if((line > 6) || (tIBscreen.FBStartAdress == 0)) | 119 if((line > 6) || (tIBscreen.FBStartAdress == 0)) |
| 120 tInfo_newpage(text); | 120 tInfo_newpage(text); |
| 121 else | 121 else |
| 122 { | 122 { |
| 123 if(text) | 123 if(text) |
| 124 GFX_write_string(&FontT48, &tIBwindow, text,line); | 124 GFX_write_string(&FontT48min, &tIBwindow, text,line); |
| 125 line++; | 125 line++; |
| 126 | 126 |
| 127 } | 127 } |
| 128 } | 128 } |
| 129 | 129 |
