Mercurial > public > ostc4
comparison Small_CPU/Src/scheduler.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 | 9d82411d0afa |
children | 2e2d34c1cc99 |
comparison
equal
deleted
inserted
replaced
355:afa55a50cc72 | 356:cb3870f79e9d |
---|---|
1028 secondsCount += 2; | 1028 secondsCount += 2; |
1029 | 1029 |
1030 MX_I2C1_Init(); | 1030 MX_I2C1_Init(); |
1031 pressure_sensor_get_pressure_raw(); | 1031 pressure_sensor_get_pressure_raw(); |
1032 | 1032 |
1033 /* check if I2C is not up an running and try to reactivate if necessary. Also do initialization if problem occured during startup */ | 1033 /* check if I2C is not up an running and try to reactivate if necessary. Also do initialization if problem occurred during startup */ |
1034 if(global.I2C_SystemStatus != HAL_OK) | 1034 if(global.I2C_SystemStatus != HAL_OK) |
1035 { | 1035 { |
1036 MX_I2C1_TestAndClear(); | 1036 MX_I2C1_TestAndClear(); |
1037 MX_I2C1_Init(); | 1037 MX_I2C1_Init(); |
1038 if(global.I2C_SystemStatus == HAL_OK) | 1038 if(global.I2C_SystemStatus == HAL_OK) |