Mercurial > public > ostc4
comparison BootLoader/Src/settings_bootloader.c @ 30:ea1003f63e44
ADD GPL License ...
author | jDG |
---|---|
date | Tue, 23 Jan 2018 17:29:40 +0100 |
parents | e65d01b6a17e |
children | 7801c5d8a562 |
comparison
equal
deleted
inserted
replaced
29:3a98f9e7ca58 | 30:ea1003f63e44 |
---|---|
1 /** | 1 /////////////////////////////////////////////////////////////////////////////// |
2 ****************************************************************************** | 2 /// -*- coding: UTF-8 -*- |
3 * @copyright heinrichs weikamp | 3 /// |
4 * @file settings_bootloader.c | 4 /// \file BootLoader/Src/settings_bootloader.c |
5 * @author heinrichs/weikamp, Christian Weikamp | 5 /// \brief mini version for firmwareDataGetPointer() etc. |
6 * @date 21-March-2016 | 6 /// \author heinrichs/weikamp, Christian Weikamp |
7 * @version V1.0.1 | 7 /// \date 21-March-2016 |
8 * @since 24-Oct-2016 | 8 /// |
9 * @brief mini version for firmwareDataGetPointer() etc. | 9 /// $Id$ |
10 * 1.0.1 getLicence() included | 10 /////////////////////////////////////////////////////////////////////////////// |
11 ****************************************************************************** | 11 /// \par Copyright (c) 2014-2018 Heinrichs Weikamp gmbh |
12 */ | 12 /// |
13 | 13 /// This program is free software: you can redistribute it and/or modify |
14 /// it under the terms of the GNU General Public License as published by | |
15 /// the Free Software Foundation, either version 3 of the License, or | |
16 /// (at your option) any later version. | |
17 /// | |
18 /// This program is distributed in the hope that it will be useful, | |
19 /// but WITHOUT ANY WARRANTY; without even the implied warranty of | |
20 /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
21 /// GNU General Public License for more details. | |
22 /// | |
23 /// You should have received a copy of the GNU General Public License | |
24 /// along with this program. If not, see <http://www.gnu.org/licenses/>. | |
25 ////////////////////////////////////////////////////////////////////////////// | |
14 | 26 |
15 /* Includes ------------------------------------------------------------------*/ | 27 /* Includes ------------------------------------------------------------------*/ |
16 #include <string.h> | 28 #include <string.h> |
17 #include "settings.h" | 29 #include "settings.h" |
18 | 30 |
19 | |
20 /* always at 0x8080000, do not move -> bootloader access */ | 31 /* always at 0x8080000, do not move -> bootloader access */ |
21 const SFirmwareData* firmwareDataGetPointer(void) | 32 const SFirmwareData* firmwareDataGetPointer(void) |
22 { | 33 { |
23 return (const SFirmwareData*)(0x08040000 + 0x00010000); | 34 return (const SFirmwareData*)(0x08040000 + 0x00010000); |
24 } | 35 } |
25 | 36 |
26 | 37 |
27 void getActualRTEandFONTversion(uint8_t *RTEhigh, uint8_t *RTElow, uint8_t *FONThigh, uint8_t *FONTlow) | 38 void getActualRTEandFONTversion(uint8_t *RTEhigh, uint8_t *RTElow, uint8_t *FONThigh, uint8_t *FONTlow) |
28 { | 39 { |
29 if(RTEhigh && RTElow) | 40 if(RTEhigh && RTElow) |