dhcp debugging
This commit is contained in:
parent
7e9cc0051d
commit
b1b8cf1aa9
@ -34,23 +34,23 @@ void wiz_cs_deselect(void) {
|
|||||||
uint8_t wiz_spi_readbyte(void) {
|
uint8_t wiz_spi_readbyte(void) {
|
||||||
uint8_t rbuf;
|
uint8_t rbuf;
|
||||||
HAL_SPI_Receive(ðerSpi, &rbuf, 1, HAL_MAX_DELAY);
|
HAL_SPI_Receive(ðerSpi, &rbuf, 1, HAL_MAX_DELAY);
|
||||||
coloredMsg(LOG_YELLOW, "R: %02x", rbuf);
|
// coloredMsg(LOG_YELLOW, "R: %02x", rbuf);
|
||||||
return rbuf;
|
return rbuf;
|
||||||
}
|
}
|
||||||
|
|
||||||
void wiz_spi_writebyte(uint8_t wb) {
|
void wiz_spi_writebyte(uint8_t wb) {
|
||||||
coloredMsg(LOG_YELLOW, "W: %02x", wb);
|
// coloredMsg(LOG_YELLOW, "W: %02x", wb);
|
||||||
HAL_SPI_Transmit(ðerSpi, &wb, 1, HAL_MAX_DELAY);
|
HAL_SPI_Transmit(ðerSpi, &wb, 1, HAL_MAX_DELAY);
|
||||||
}
|
}
|
||||||
|
|
||||||
void wiz_spi_readburst(uint8_t* pBuf, uint16_t len) {
|
void wiz_spi_readburst(uint8_t* pBuf, uint16_t len) {
|
||||||
HAL_SPI_Receive(ðerSpi, pBuf, len, HAL_MAX_DELAY);
|
HAL_SPI_Receive(ðerSpi, 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) {
|
void wiz_spi_writeburst(uint8_t* pBuf, uint16_t len) {
|
||||||
HAL_SPI_Transmit(ðerSpi, pBuf, len, HAL_MAX_DELAY);
|
HAL_SPI_Transmit(ðerSpi, 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) {
|
static void wizReset(bool b) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user