Mercurial > public > ostc4
comparison Small_CPU/Src/baseCPU2.c @ 356:cb3870f79e9d
Add Support for new end-2019 hardware:
new pressure sensor MS5837 support with autodetect in pressure.c
define the sensors in i2c.h
minor typo fixed in scheduler.c
advance version number and update release date in baseCPU2.c
Beware: Messing up the I2C function may require factory maintance in gen 1 and gen 2 hardware!
author | heinrichsweikamp |
---|---|
date | Sat, 23 Nov 2019 15:36:38 +0100 |
parents | 591c03a1e68d |
children | 54a480c43e97 |
comparison
equal
deleted
inserted
replaced
355:afa55a50cc72 | 356:cb3870f79e9d |
---|---|
160 | 160 |
161 // SHALL LOAD AT 0x08000000 + 0x00005000 = 0x08005000. | 161 // SHALL LOAD AT 0x08000000 + 0x00005000 = 0x08005000. |
162 // See CPU2-RTE.ld | 162 // See CPU2-RTE.ld |
163 const SFirmwareData cpu2_FirmwareData __attribute__(( section(".firmware_data") ))= { | 163 const SFirmwareData cpu2_FirmwareData __attribute__(( section(".firmware_data") ))= { |
164 .versionFirst = 2, | 164 .versionFirst = 2, |
165 .versionSecond = 0, | 165 .versionSecond = 1, |
166 .versionThird = 0, | 166 .versionThird = 0, |
167 .versionBeta = 0, | 167 .versionBeta = 0, |
168 | 168 |
169 /* 4 bytes with trailing 0 */ | 169 /* 4 bytes with trailing 0 */ |
170 .signature = "mh", | 170 .signature = "mh", |
171 | 171 |
172 .release_year = 19, | 172 .release_year = 19, |
173 .release_month = 10, | 173 .release_month = 11, |
174 .release_day = 6, | 174 .release_day = 23, |
175 .release_sub = 0, | 175 .release_sub = 0, |
176 | 176 |
177 /* max 48 with trailing 0 */ | 177 /* max 48 with trailing 0 */ |
178 //release_info ="12345678901234567890123456789012345678901" | 178 //release_info ="12345678901234567890123456789012345678901" |
179 .release_info = "stable Aug'19", | 179 .release_info = "stable Nov'19", |
180 | 180 |
181 /* for safety reasons and coming functions */ | 181 /* for safety reasons and coming functions */ |
182 .magic[0] = FIRMWARE_MAGIC_FIRST, .magic[1] = FIRMWARE_MAGIC_SECOND, | 182 .magic[0] = FIRMWARE_MAGIC_FIRST, .magic[1] = FIRMWARE_MAGIC_SECOND, |
183 .magic[2] = FIRMWARE_MAGIC_CPU2_RTE, /* the magic byte for RTE */ | 183 .magic[2] = FIRMWARE_MAGIC_CPU2_RTE, /* the magic byte for RTE */ |
184 .magic[3] = FIRMWARE_MAGIC_END }; | 184 .magic[3] = FIRMWARE_MAGIC_END }; |