Dump byteIn after xfer->event via SPI. Make the firmware build without using the DEBUG_OVER_SPI macro.

This commit is contained in:
László Monda
2017-10-08 23:12:40 +02:00
parent 6b0ebb1385
commit 859a770ca3
2 changed files with 6 additions and 3 deletions

View File

@@ -20,7 +20,9 @@ static volatile bool masterFinished = false;
static void masterCallback(SPI_Type *base, spi_master_handle_t *masterHandle, status_t status, void *userData)
{
#ifdef DEBUG_OVER_SPI
masterFinished = true;
#endif
}
void DebugOverSpi_Init(void)
@@ -42,7 +44,6 @@ void DebugOverSpi_Init(void)
SPI_MasterGetDefaultConfig(&userConfig);
uint32_t srcFreq = CLOCK_GetFreq(EXAMPLE_SPI_MASTER_SOURCE_CLOCK);
SPI_MasterInit(EXAMPLE_SPI_MASTER, &userConfig, srcFreq);
SPI_MasterTransferCreateHandle(EXAMPLE_SPI_MASTER, &handle, masterCallback, NULL);
#endif
}