#define QSPI_SPI_HOST SPI2_HOST #define QSPI_DMA_CHANNEL SPI_DMA_CH_AUTO These two seem to be the main problem, it showed 'SPI2_HOST' was not declared in this scope 'SPI_DMA_CH_AUTO' was not declared in this scope
#define QSPI_SPI_HOST SPI2_HOST
#define QSPI_DMA_CHANNEL SPI_DMA_CH_AUTO
These two seem to be the main problem, it showed
'SPI2_HOST' was not declared in this scope
'SPI_DMA_CH_AUTO' was not declared in this scope