Closed rtek1000 closed 9 months ago
Those functions you reference are from the lower level SPI driver.
DMA coordination is performed higher in the graphics driver:
On Tue, Jun 27, 2023, 16:47 rtek1000 @.***> wrote:
Hi,
void ili9341_spi_write_command(ili9341_t *lcd, ili9341_spi_slave_t spi_slave, uint8_t command) { __SLAVE_SELECT(lcd, spi_slave);
HAL_GPIO_WritePin(lcd->data_command_port, lcd->data_command_pin, GPIO_PIN_CLR); HAL_SPI_Transmit(lcd->spi_hal, &command, sizeof(command), SPI_MAX_DELAY);
__SLAVE_RELEASE(lcd, spi_slave); } void ili9341_spi_write_data(ili9341_t *lcd, ili9341_spi_slave_t spi_slave, uint16_t data_sz, uint8_t data[]) { __SLAVE_SELECT(lcd, spi_slave);
HAL_GPIO_WritePin(lcd->data_command_port, lcd->data_command_pin, GPIO_PIN_SET); HAL_SPI_Transmit(lcd->spi_hal, data, data_sz, SPI_MAX_DELAY);
__SLAVE_RELEASE(lcd, spi_slave); }
Reference: https://visualgdb.com/tutorials/arm/stm32/spi/
— Reply to this email directly, view it on GitHub https://github.com/ardnew/ILI9341-STM32-HAL/issues/7, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA5I3NZ2PIQMDLXYYMXQ4MTXNNIILANCNFSM6AAAAAAZWFZOI4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Hi,
Reference: https://visualgdb.com/tutorials/arm/stm32/spi/