annotate BootLoader/Src/settings_bootloader.c @ 23:89f429767017

ADD missing chars in FontPack
author JeanDo
date Mon, 01 Jan 2018 18:56:14 +0100
parents e65d01b6a17e
children ea1003f63e44
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
1 /**
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
2 ******************************************************************************
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
3 * @copyright heinrichs weikamp
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
4 * @file settings_bootloader.c
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
5 * @author heinrichs/weikamp, Christian Weikamp
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
6 * @date 21-March-2016
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
7 * @version V1.0.1
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
8 * @since 24-Oct-2016
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
9 * @brief mini version for firmwareDataGetPointer() etc.
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
10 * 1.0.1 getLicence() included
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
11 ******************************************************************************
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
12 */
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
13
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
14
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
15 /* Includes ------------------------------------------------------------------*/
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
16 #include <string.h>
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
17 #include "settings.h"
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
18
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
19
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
20 /* always at 0x8080000, do not move -> bootloader access */
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
21 const SFirmwareData* firmwareDataGetPointer(void)
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
22 {
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
23 return (const SFirmwareData*)(0x08040000 + 0x00010000);
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
24 }
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
25
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
26
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
27 void getActualRTEandFONTversion(uint8_t *RTEhigh, uint8_t *RTElow, uint8_t *FONThigh, uint8_t *FONTlow)
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
28 {
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
29 if(RTEhigh && RTElow)
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
30 {
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
31 *RTEhigh = 0;
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
32 *RTElow = 0;
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
33 }
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
34 if(FONThigh && FONTlow)
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
35 {
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
36 *FONThigh = *(uint8_t *)0x08132000;
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
37 *FONTlow = *(uint8_t *)0x08132001;
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
38 }
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
39 }
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
40
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
41
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
42 uint8_t getLicence(void)
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
43 {
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
44 //return 0xFF;
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
45 //return LICENCEBONEX;
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
46 return hardwareDataGetPointer()->primaryLicence;
e65d01b6a17e MOVE files for other applications
JeanDo
parents:
diff changeset
47 }