debugging

This commit is contained in:
Wolfgang Hottgenroth 2020-11-05 17:28:37 +01:00
parent 9d273f3440
commit 89b8955763
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F

View File

@ -74,14 +74,16 @@ void eepromWrite(uint16_t addr, uint8_t *buf, uint8_t len) {
memcpy(msg.s.data, buf, len);
uint8_t writeEnable = EEPROM_WREN;
coloredLog(LOG_HIGH, "1");
__EEPROM_CS(LOW);
HAL_SPI_Transmit(&eepromSpi, &writeEnable, 1, HAL_MAX_DELAY);
__EEPROM_CS(HIGH);
coloredLog(LOG_HIGH, "2");
__EEPROM_CS(LOW);
HAL_SPI_Transmit(&eepromSpi, msg.b, ((uint16_t)(len+3)), HAL_MAX_DELAY);
__EEPROM_CS(HIGH);
coloredLog(LOG_HIGH, "3");
}
void eepromRead(uint16_t addr, uint8_t *buf, uint8_t len) {