Mercurial > public > ostc4
comparison Small_CPU/Inc/scheduler.h @ 241:2b9775f71e30 div-fixes-5
cleanup: factor out I2C1_Status() and cleanup type
Having a function that returns global data is rather useless. Further,
use HAL_StatusTypeDef directly, instead of typecasting between a
HAL defined enum and our uint_8t. Cleanup only.
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
author | Jan Mulder <jlmulder@xs4all.nl> |
---|---|
date | Mon, 08 Apr 2019 11:18:40 +0200 |
parents | e4207f0aaa4b |
children | b3685fbada3b |
comparison
equal
deleted
inserted
replaced
240:625d20070261 | 241:2b9775f71e30 |
---|---|
67 uint8_t dataSendToSlaveIsNotValidCount; | 67 uint8_t dataSendToSlaveIsNotValidCount; |
68 uint8_t ButtonPICdata[4]; | 68 uint8_t ButtonPICdata[4]; |
69 uint8_t accidentFlag; | 69 uint8_t accidentFlag; |
70 uint32_t accidentRemainingSeconds; | 70 uint32_t accidentRemainingSeconds; |
71 uint8_t sensorError[MAX_SENSORS]; | 71 uint8_t sensorError[MAX_SENSORS]; |
72 uint8_t I2C_SystemStatus; | 72 HAL_StatusTypeDef I2C_SystemStatus; |
73 } SGlobal; | 73 } SGlobal; |
74 | 74 |
75 typedef struct | 75 typedef struct |
76 { | 76 { |
77 long seconds_since_last_dive; | 77 long seconds_since_last_dive; |