| 147 | } |
| 148 | |
| 149 | static void drv_lcd_data_byte(lcd_8080_device_t lcd, rt_uint8_t *data_buf, rt_uint32_t length) |
| 150 | { |
| 151 | gpiohs_set_pin(lcd->dc_pin, GPIO_PV_HIGH); |
| 152 | spi_init(lcd->spi_channel, SPI_WORK_MODE_0, SPI_FF_OCTAL, 8, 0); |
| 153 | spi_init_non_standard(lcd->spi_channel, 8 /*instrction length*/, 0 /*address length*/, 0 /*wait cycles*/, |
| 154 | SPI_AITM_AS_FRAME_FORMAT /*spi address trans mode*/); |
| 155 | spi_send_data_normal_dma(lcd->dma_channel, lcd->spi_channel, lcd->cs, data_buf, length, SPI_TRANS_CHAR); |
| 156 | } |
| 157 | |
| 158 | static void drv_lcd_data_half_word(lcd_8080_device_t lcd, rt_uint16_t *data_buf, rt_uint32_t length) |
| 159 | { |
no test coverage detected