RobertoBenjami / stm32_hal_graphics_display_drivers

STM32 graphics LCD and Touchscreen drivers (LCD: st7735, st7781, ili9325, ili9328, ili9341, ili9488, Touch: analog resistive, xpt2046, stmpe811)
65 stars 21 forks source link

STM32F405 SPI DMA #2

Open SaschaSt75 opened 11 months ago

SaschaSt75 commented 11 months ago

Hello,

I have configured the driver for an ILI9488 display and SPI. However, when I turn on LCD_DMA_TX I get the error:

/Core/Src/Lcd/lcdts_io_xpt2046_spi_hal.c:491:23: error: 'LCD_SPI_HANDLE' undeclared (first use in this function); did you mean 'LCDTS_SPI_HANDLE'?

Where is the error?

Regards Sascha

SaschaSt75 commented 11 months ago

So,

at File lcdts_io_xpt2046_spi_hal.c

@Line 491 replace:

__HAL_DMA_DISABLE(LCD_SPI_HANDLE.hdmatx);

with:

__HAL_DMA_DISABLE(LCDTS_SPI_HANDLE.hdmatx);

If use #define LCD_RGB24_BUFFSIZE @Line 546 replace:

__HAL_DMA_DISABLE(LCD_SPI_HANDLE.hdmatx);

with:

__HAL_DMA_DISABLE(LCDTS_SPI_HANDLE.hdmatx);

Thats all

RobertoBenjami commented 11 months ago

Thanks for the comment, I fixed it.