MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / drv_lcd_data_word

Function drv_lcd_data_word

bsp/k210/drivers/drv_lcd.c:167–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167static 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
176static void drv_lcd_hw_init(lcd_8080_device_t lcd)
177{

Callers

nothing calls this directly

Calls 1

spi_initFunction · 0.50

Tested by

no test coverage detected