annotate FontPack/base_upperRegion.c @ 21:58007c7b5499

FIX shared SFirmwareData signature at fixed address
author JeanDo
date Mon, 01 Jan 2018 18:24:07 +0100
parents 11f56f208b92
children 1df134a2706e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
16
11f56f208b92 ... FontPack CPU1 project
jdg@air
parents:
diff changeset
1 /**
11f56f208b92 ... FontPack CPU1 project
jdg@air
parents:
diff changeset
2 ******************************************************************************
11f56f208b92 ... FontPack CPU1 project
jdg@air
parents:
diff changeset
3 * @copyright heinrichs weikamp
11f56f208b92 ... FontPack CPU1 project
jdg@air
parents:
diff changeset
4 * @file base_upperRegion.c
11f56f208b92 ... FontPack CPU1 project
jdg@air
parents:
diff changeset
5 * @author heinrichs/weikamp, Christian Weikamp
11f56f208b92 ... FontPack CPU1 project
jdg@air
parents:
diff changeset
6 * @date 31-August-2015
11f56f208b92 ... FontPack CPU1 project
jdg@air
parents:
diff changeset
7 * @version V0.0.3
11f56f208b92 ... FontPack CPU1 project
jdg@air
parents:
diff changeset
8 * @since 03-Dez-2016
11f56f208b92 ... FontPack CPU1 project
jdg@air
parents:
diff changeset
9 * @brief The beginning of it all. main() is part of this.
11f56f208b92 ... FontPack CPU1 project
jdg@air
parents:
diff changeset
10 * @bug
11f56f208b92 ... FontPack CPU1 project
jdg@air
parents:
diff changeset
11 * @warning
11f56f208b92 ... FontPack CPU1 project
jdg@air
parents:
diff changeset
12 @verbatim
11f56f208b92 ... FontPack CPU1 project
jdg@air
parents:
diff changeset
13 ==============================================================================
11f56f208b92 ... FontPack CPU1 project
jdg@air
parents:
diff changeset
14 ##### New characters in fonts #####
11f56f208b92 ... FontPack CPU1 project
jdg@air
parents:
diff changeset
15 ==============================================================================
11f56f208b92 ... FontPack CPU1 project
jdg@air
parents:
diff changeset
16 [..] Use font_tmore.c and add line to corresponding font like font_t54c
11f56f208b92 ... FontPack CPU1 project
jdg@air
parents:
diff changeset
17 Don't forget to adjust the length of the font in the last line starting
11f56f208b92 ... FontPack CPU1 project
jdg@air
parents:
diff changeset
18 const tFont .....
11f56f208b92 ... FontPack CPU1 project
jdg@air
parents:
diff changeset
19
21
58007c7b5499 FIX shared SFirmwareData signature at fixed address
JeanDo
parents: 16
diff changeset
20 [..] last char vor der gro�en L�cke, Stand 160217
16
11f56f208b92 ... FontPack CPU1 project
jdg@air
parents:
diff changeset
21 image_data_FontT24_0x002b[364]
11f56f208b92 ... FontPack CPU1 project
jdg@air
parents:
diff changeset
22 __attribute__((at( START_T24_FONT + (1647 * 28) ))), START_T24_FONT (0x08142F00 - MINUS_BANK)
11f56f208b92 ... FontPack CPU1 project
jdg@air
parents:
diff changeset
23
11f56f208b92 ... FontPack CPU1 project
jdg@air
parents:
diff changeset
24 -> frei ab 0x0814E490
11f56f208b92 ... FontPack CPU1 project
jdg@air
parents:
diff changeset
25 geht dann weiter mit image_data_ostc_fuer_Tauchcomputer_240px
11f56f208b92 ... FontPack CPU1 project
jdg@air
parents:
diff changeset
26 sind ca. 120 kByte frei!
11f56f208b92 ... FontPack CPU1 project
jdg@air
parents:
diff changeset
27
11f56f208b92 ... FontPack CPU1 project
jdg@air
parents:
diff changeset
28 @endverbatim
11f56f208b92 ... FontPack CPU1 project
jdg@air
parents:
diff changeset
29 ******************************************************************************
11f56f208b92 ... FontPack CPU1 project
jdg@air
parents:
diff changeset
30 * @attention
11f56f208b92 ... FontPack CPU1 project
jdg@air
parents:
diff changeset
31 *
11f56f208b92 ... FontPack CPU1 project
jdg@air
parents:
diff changeset
32 * <h2><center>&copy; COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
11f56f208b92 ... FontPack CPU1 project
jdg@air
parents:
diff changeset
33 *
11f56f208b92 ... FontPack CPU1 project
jdg@air
parents:
diff changeset
34 ******************************************************************************
11f56f208b92 ... FontPack CPU1 project
jdg@air
parents:
diff changeset
35 */
11f56f208b92 ... FontPack CPU1 project
jdg@air
parents:
diff changeset
36
11f56f208b92 ... FontPack CPU1 project
jdg@air
parents:
diff changeset
37 /* Includes ------------------------------------------------------------------*/
21
58007c7b5499 FIX shared SFirmwareData signature at fixed address
JeanDo
parents: 16
diff changeset
38
58007c7b5499 FIX shared SFirmwareData signature at fixed address
JeanDo
parents: 16
diff changeset
39 #include "FirmwareData.h"
58007c7b5499 FIX shared SFirmwareData signature at fixed address
JeanDo
parents: 16
diff changeset
40 #include "gfx_fonts.h"
16
11f56f208b92 ... FontPack CPU1 project
jdg@air
parents:
diff changeset
41
11f56f208b92 ... FontPack CPU1 project
jdg@air
parents:
diff changeset
42 #include "stm32f4xx_hal.h"
11f56f208b92 ... FontPack CPU1 project
jdg@air
parents:
diff changeset
43
21
58007c7b5499 FIX shared SFirmwareData signature at fixed address
JeanDo
parents: 16
diff changeset
44 const SFirmwareData font_FirmwareData SECTION_FIRMWARE_DATA =
16
11f56f208b92 ... FontPack CPU1 project
jdg@air
parents:
diff changeset
45 {
21
58007c7b5499 FIX shared SFirmwareData signature at fixed address
JeanDo
parents: 16
diff changeset
46 .versionFirst = 0,
58007c7b5499 FIX shared SFirmwareData signature at fixed address
JeanDo
parents: 16
diff changeset
47 .versionSecond = 9,
58007c7b5499 FIX shared SFirmwareData signature at fixed address
JeanDo
parents: 16
diff changeset
48 .versionThird = 0,
58007c7b5499 FIX shared SFirmwareData signature at fixed address
JeanDo
parents: 16
diff changeset
49 .versionBeta = 0,
58007c7b5499 FIX shared SFirmwareData signature at fixed address
JeanDo
parents: 16
diff changeset
50
58007c7b5499 FIX shared SFirmwareData signature at fixed address
JeanDo
parents: 16
diff changeset
51 /* 4 bytes, including trailing 0 */
58007c7b5499 FIX shared SFirmwareData signature at fixed address
JeanDo
parents: 16
diff changeset
52 .signature = "cw",
16
11f56f208b92 ... FontPack CPU1 project
jdg@air
parents:
diff changeset
53
21
58007c7b5499 FIX shared SFirmwareData signature at fixed address
JeanDo
parents: 16
diff changeset
54 .release_year = 16,
58007c7b5499 FIX shared SFirmwareData signature at fixed address
JeanDo
parents: 16
diff changeset
55 .release_month = 1,
58007c7b5499 FIX shared SFirmwareData signature at fixed address
JeanDo
parents: 16
diff changeset
56 .release_day = 13,
58007c7b5499 FIX shared SFirmwareData signature at fixed address
JeanDo
parents: 16
diff changeset
57 .release_sub = 0,
16
11f56f208b92 ... FontPack CPU1 project
jdg@air
parents:
diff changeset
58
21
58007c7b5499 FIX shared SFirmwareData signature at fixed address
JeanDo
parents: 16
diff changeset
59 /* max 48, including trailing 0 */
58007c7b5499 FIX shared SFirmwareData signature at fixed address
JeanDo
parents: 16
diff changeset
60 .release_info ="",
16
11f56f208b92 ... FontPack CPU1 project
jdg@air
parents:
diff changeset
61
21
58007c7b5499 FIX shared SFirmwareData signature at fixed address
JeanDo
parents: 16
diff changeset
62 /* for safety reasons and coming functions */
58007c7b5499 FIX shared SFirmwareData signature at fixed address
JeanDo
parents: 16
diff changeset
63 .magic[0] = FIRMWARE_MAGIC_FIRST,
58007c7b5499 FIX shared SFirmwareData signature at fixed address
JeanDo
parents: 16
diff changeset
64 .magic[1] = FIRMWARE_MAGIC_SECOND,
58007c7b5499 FIX shared SFirmwareData signature at fixed address
JeanDo
parents: 16
diff changeset
65 .magic[2] = FIRMWARE_MAGIC_FONT, /* the magic byte for fonts*/
58007c7b5499 FIX shared SFirmwareData signature at fixed address
JeanDo
parents: 16
diff changeset
66 .magic[3] = FIRMWARE_MAGIC_END
16
11f56f208b92 ... FontPack CPU1 project
jdg@air
parents:
diff changeset
67 };
11f56f208b92 ... FontPack CPU1 project
jdg@air
parents:
diff changeset
68
21
58007c7b5499 FIX shared SFirmwareData signature at fixed address
JeanDo
parents: 16
diff changeset
69 /* Fonts fixed in upper region */
58007c7b5499 FIX shared SFirmwareData signature at fixed address
JeanDo
parents: 16
diff changeset
70 #include "Fonts/font_awe48.h"
58007c7b5499 FIX shared SFirmwareData signature at fixed address
JeanDo
parents: 16
diff changeset
71 #include "Fonts/font_T24.h"
58007c7b5499 FIX shared SFirmwareData signature at fixed address
JeanDo
parents: 16
diff changeset
72 #include "Fonts/font_T42.h"
58007c7b5499 FIX shared SFirmwareData signature at fixed address
JeanDo
parents: 16
diff changeset
73 #include "Fonts/font_T48_plus.h"
58007c7b5499 FIX shared SFirmwareData signature at fixed address
JeanDo
parents: 16
diff changeset
74 #include "Fonts/font_T54.h"
58007c7b5499 FIX shared SFirmwareData signature at fixed address
JeanDo
parents: 16
diff changeset
75 #include "Fonts/font_T84.h"
58007c7b5499 FIX shared SFirmwareData signature at fixed address
JeanDo
parents: 16
diff changeset
76 #include "Fonts/font_T105.h"
58007c7b5499 FIX shared SFirmwareData signature at fixed address
JeanDo
parents: 16
diff changeset
77 #include "Fonts/font_T144_plus.h"
16
11f56f208b92 ... FontPack CPU1 project
jdg@air
parents:
diff changeset
78
21
58007c7b5499 FIX shared SFirmwareData signature at fixed address
JeanDo
parents: 16
diff changeset
79 /* Images fixed in upper region */
58007c7b5499 FIX shared SFirmwareData signature at fixed address
JeanDo
parents: 16
diff changeset
80 #include "Fonts/image_battery.h"
58007c7b5499 FIX shared SFirmwareData signature at fixed address
JeanDo
parents: 16
diff changeset
81 #include "Fonts/image_heinrichs_weikamp.h"
58007c7b5499 FIX shared SFirmwareData signature at fixed address
JeanDo
parents: 16
diff changeset
82 #include "Fonts/image_ostc.h"
16
11f56f208b92 ... FontPack CPU1 project
jdg@air
parents:
diff changeset
83
21
58007c7b5499 FIX shared SFirmwareData signature at fixed address
JeanDo
parents: 16
diff changeset
84 int main(void)
16
11f56f208b92 ... FontPack CPU1 project
jdg@air
parents:
diff changeset
85 {
21
58007c7b5499 FIX shared SFirmwareData signature at fixed address
JeanDo
parents: 16
diff changeset
86 return 0;
16
11f56f208b92 ... FontPack CPU1 project
jdg@air
parents:
diff changeset
87 }
11f56f208b92 ... FontPack CPU1 project
jdg@air
parents:
diff changeset
88
11f56f208b92 ... FontPack CPU1 project
jdg@air
parents:
diff changeset
89 /************************ (C) COPYRIGHT heinrichs weikamp *****END OF FILE****/