overrun error in meterbus uart handled

This commit is contained in:
2020-11-22 21:23:52 +01:00
parent 3fd30aaa36
commit bd435dd5d6
8 changed files with 63 additions and 29 deletions

View File

@ -10,6 +10,7 @@ typedef struct __attribute__((__packed__)) s_deviceStats {
uint32_t totalPowercycles;
uint32_t totalRequests;
uint32_t totalFailures;
uint32_t totalOverruns;
} t_deviceStats;
void eepromInit();
@ -18,5 +19,4 @@ void eepromRead(uint16_t addr, uint8_t *buf, uint8_t len);
void eepromSpiTxCpltCallback(SPI_HandleTypeDef *hspi);
t_deviceStats* getGlobalDeviceStats();
#endif /* EEPROM_H_ */