comparison Small_CPU/Src/baseCPU2.c @ 286:733877ab87d9

Minor: Some Texts fixed, allign RTErequired* values with RTE firmware
author heinrichsweikamp
date Mon, 06 May 2019 09:00:58 +0200
parents ae27d6185d51
children d4d8d717e9a7
comparison
equal deleted inserted replaced
285:ab6c42d2d30b 286:733877ab87d9
13 * + Start MainTasks not in IRQs 13 * + Start MainTasks not in IRQs
14 * @bug 14 * @bug
15 * @warning 15 * @warning
16 @verbatim 16 @verbatim
17 ============================================================================== 17 ==============================================================================
18 ##### What about hardware without 8 MHz oscilator ##### 18 ##### What about hardware without 8 MHz oscillator #####
19 ============================================================================== 19 ==============================================================================
20 [..] modify OTP Byte 1 at 0x1FFF7800 with ST-Link utility 20 [..] modify OTP Byte 1 at 0x1FFF7800 with ST-Link utility
21 21
22 ============================================================================== 22 ==============================================================================
23 ##### Where is the RTE Firmware version ##### 23 ##### Where is the RTE Firmware version #####
31 to start warning via the firmware if not updated 31 to start warning via the firmware if not updated
32 32
33 ============================================================================== 33 ==============================================================================
34 ##### What it does ##### 34 ##### What it does #####
35 ============================================================================== 35 ==============================================================================
36 [..] All realtime stuff und all what has to be done during sleep 36 [..] All realtime stuff and all what has to be done during sleep
37 37
38 [..] RealTimeClock. The entire time and date handling (including divetime) 38 [..] RealTimeClock. The entire time and date handling (including divetime)
39 [..] Hardware control for pressure sensor, compass, battery monitor 39 [..] Hardware control for pressure sensor, compass, battery monitor
40 [..] Calculations of tissue load, critical radius, otu, cns 40 [..] Calculations of tissue load, critical radius, otu, cns
41 [..] Switching off the power of the main CPU after request from it. 41 [..] Switching off the power of the main CPU after request from it.
62 any job stacks (like it was in the DR5). 62 any job stacks (like it was in the DR5).
63 63
64 ============================================================================== 64 ==============================================================================
65 ##### Real Time Clock ##### 65 ##### Real Time Clock #####
66 ============================================================================== 66 ==============================================================================
67 [..] Wehe sie zickt statt tickt! 67 The RTC is a separate part of hardware inside the CPU and is not affected
68 The RTC is a seperate part of hardware inside the CPU and is not affected
69 by reset. Only power-on reset does change something. 68 by reset. Only power-on reset does change something.
70 This is fine but the RTC is vital for the Sleep mode as Wakeuptimer. 69 This is fine but the RTC is vital for the Sleep mode as Wakeuptimer.
71 This is the only date/time system in the OSTC. The main CPU is passive. 70 This is the only date/time system in the OSTC. The main CPU is passive.
72 Data transfer is done with localtime_rtc_tr und localtime_rtc_dr 71 Data transfer is done with localtime_rtc_tr and localtime_rtc_dr
73 in HAL_RTC format to the main CPU and as HAL_RTC structs the way back for 72 in HAL_RTC format to the main CPU and as HAL_RTC structs the way back for
74 setting the actual time and date. 73 setting the actual time and date.
75 The RTC unit has 20 Byte of V_bat powered SRAM. It could be used 74 The RTC unit has 20 Byte of V_bat powered SRAM. It could be used
76 for something usefull in both CPUs. 75 for something useful in both CPUs.
77 76
78 ============================================================================== 77 ==============================================================================
79 ##### File system ##### 78 ##### File system #####
80 ============================================================================== 79 ==============================================================================
81 [..] some files are used for both CPUs, like decom.c/.h, data_central.h, ... 80 [..] some files are used for both CPUs, like decom.c/.h, data_central.h, ...
96 95
97 ============================================================================== 96 ==============================================================================
98 ##### Firmware Update Info ##### 97 ##### Firmware Update Info #####
99 ============================================================================== 98 ==============================================================================
100 V0.85 160531 scheduleCheck_pressure_reached_dive_mode_level() changes 99 V0.85 160531 scheduleCheck_pressure_reached_dive_mode_level() changes
101 160606 global.no_fly_time_minutes ist at least 24h after the dive 100 160606 global.no_fly_time_minutes is at least 24h after the dive
102 160613 ambient light fixed 101 160613 ambient light fixed
103 160720 compass calib to Flash (8000 writes max. as erase has problems) 102 160720 compass calib to Flash (8000 writes max. as erase has problems)
104 160829 do not reset main CPU on power on! 103 160829 do not reset main CPU on power on!
105 V0.91 161018 pressure_calculation_AN520_004_mod_MS5803_30BA__09_2015(); 104 V0.91 161018 pressure_calculation_AN520_004_mod_MS5803_30BA__09_2015();
106 V0.92+ 161020 global.sensorError[MAX_SENSORS] 105 V0.92+ 161020 global.sensorError[MAX_SENSORS]
107 fix missing init_pressure(); at powerUp of RTE 106 fix missing init_pressure(); at powerUp of RTE
108 added HAL_StatusTypeDef for many functions in pressure.c 107 added HAL_StatusTypeDef for many functions in pressure.c
109 161024 no_fly_time_minutes Backup FIX 108 161024 no_fly_time_minutes Backup FIX
110 seconds_since_last_dive now related to RTC clock 109 seconds_since_last_dive now related to RTC clock
111 161121 close to surface starts at 1 meter below last known surface pressure 110 161121 close to surface starts at 1 meter below last known surface pressure
112 161121 in surface mode dive mode starts @1 mtr difference if surface 880 mbar instead of 700 mbar before 111 161121 in surface mode dive mode starts @1 mtr difference if surface 880 hPa instead of 700 hPa before
113 V0.97+ 170213 added global.dataSendToSlave.diveModeInfo for DIVEMODE_Apnea 112 V0.97+ 170213 added global.dataSendToSlave.diveModeInfo for DIVEMODE_Apnea
114 added global.dataSendToSlave.setEndDive 113 added global.dataSendToSlave.setEndDive
115 DIVEMODE_Apnea special in scheduler.c (ticksdiff >= 1000) -> no tissue, cns, otu, no change in noFly Time etc. 114 DIVEMODE_Apnea special in scheduler.c (ticksdiff >= 1000) -> no tissue, cns, otu, no change in noFly Time etc.
116 V0.99 170320 new HAL Driver Repository 115 V0.99 170320 new HAL Driver Repository
117 V1.01 170509 old HAL Driver Repository 116 V1.01 170509 old HAL Driver Repository
163 // See CPU2-RTE.ld 162 // See CPU2-RTE.ld
164 const SFirmwareData cpu2_FirmwareData __attribute__(( section(".firmware_data") ))= { 163 const SFirmwareData cpu2_FirmwareData __attribute__(( section(".firmware_data") ))= {
165 .versionFirst = 1, 164 .versionFirst = 1,
166 .versionSecond = 8, 165 .versionSecond = 8,
167 .versionThird = 0, 166 .versionThird = 0,
168 .versionBeta = 1, 167 .versionBeta = 0,
169 168
170 /* 4 bytes with trailing 0 */ 169 /* 4 bytes with trailing 0 */
171 .signature = "mh", 170 .signature = "mh",
172 171
173 .release_year = 19, 172 .release_year = 19,
174 .release_month = 3, 173 .release_month = 5,
175 .release_day = 10, 174 .release_day = 6,
176 .release_sub = 0, 175 .release_sub = 0,
177 176
178 /* max 48 with trailing 0 */ 177 /* max 48 with trailing 0 */
179 //release_info ="12345678901234567890123456789012345678901" 178 //release_info ="12345678901234567890123456789012345678901"
180 .release_info = "compass stuff", 179 .release_info = "stable May'19",
181 180
182 /* for safety reasons and coming functions */ 181 /* for safety reasons and coming functions */
183 .magic[0] = FIRMWARE_MAGIC_FIRST, .magic[1] = FIRMWARE_MAGIC_SECOND, 182 .magic[0] = FIRMWARE_MAGIC_FIRST, .magic[1] = FIRMWARE_MAGIC_SECOND,
184 .magic[2] = FIRMWARE_MAGIC_CPU2_RTE, /* the magic byte for RTE */ 183 .magic[2] = FIRMWARE_MAGIC_CPU2_RTE, /* the magic byte for RTE */
185 .magic[3] = FIRMWARE_MAGIC_END }; 184 .magic[3] = FIRMWARE_MAGIC_END };