| 165 | } |
| 166 | |
| 167 | static void drv_lcd_data_word(lcd_8080_device_t lcd, rt_uint32_t *data_buf, rt_uint32_t length) |
| 168 | { |
| 169 | gpiohs_set_pin(lcd->dc_pin, GPIO_PV_HIGH); |
| 170 | spi_init(lcd->spi_channel, SPI_WORK_MODE_0, SPI_FF_OCTAL, 32, 0); |
| 171 | spi_init_non_standard(lcd->spi_channel, 0 /*instrction length*/, 32 /*address length*/, 0 /*wait cycles*/, |
| 172 | SPI_AITM_AS_FRAME_FORMAT /*spi address trans mode*/); |
| 173 | spi_send_data_normal_dma(lcd->dma_channel, lcd->spi_channel, lcd->cs, data_buf, length, SPI_TRANS_INT); |
| 174 | } |
| 175 | |
| 176 | static void drv_lcd_hw_init(lcd_8080_device_t lcd) |
| 177 | { |
nothing calls this directly
no test coverage detected