debugging
This commit is contained in:
parent
9d273f3440
commit
89b8955763
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user