dhcp debugging

This commit is contained in:
Wolfgang Hottgenroth 2020-11-09 14:47:37 +01:00
parent 7e9cc0051d
commit b1b8cf1aa9
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F

View File

@ -34,23 +34,23 @@ void wiz_cs_deselect(void) {
uint8_t wiz_spi_readbyte(void) {
uint8_t rbuf;
HAL_SPI_Receive(&etherSpi, &rbuf, 1, HAL_MAX_DELAY);
coloredMsg(LOG_YELLOW, "R: %02x", rbuf);
// coloredMsg(LOG_YELLOW, "R: %02x", rbuf);
return rbuf;
}
void wiz_spi_writebyte(uint8_t wb) {
coloredMsg(LOG_YELLOW, "W: %02x", wb);
// coloredMsg(LOG_YELLOW, "W: %02x", wb);
HAL_SPI_Transmit(&etherSpi, &wb, 1, HAL_MAX_DELAY);
}
void wiz_spi_readburst(uint8_t* pBuf, uint16_t len) {
HAL_SPI_Receive(&etherSpi, pBuf, len, HAL_MAX_DELAY);
coloredMsg(LOG_YELLOW, "RB: %d %02x %02x %02x", len, pBuf[0], pBuf[1], pBuf[2]);
// coloredMsg(LOG_YELLOW, "RB: %d %02x %02x %02x", len, pBuf[0], pBuf[1], pBuf[2]);
}
void wiz_spi_writeburst(uint8_t* pBuf, uint16_t len) {
HAL_SPI_Transmit(&etherSpi, pBuf, len, HAL_MAX_DELAY);
coloredMsg(LOG_YELLOW, "WB: %d %02x %02x %02x", len, pBuf[0], pBuf[1], pBuf[2]);
// coloredMsg(LOG_YELLOW, "WB: %d %02x %02x %02x", len, pBuf[0], pBuf[1], pBuf[2]);
}
static void wizReset(bool b) {