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

Function drv_lcd_data_byte

bsp/k210/drivers/drv_lcd.c:149–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149static 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
158static void drv_lcd_data_half_word(lcd_8080_device_t lcd, rt_uint16_t *data_buf, rt_uint32_t length)
159{

Callers 3

drv_lcd_set_directionFunction · 0.85
drv_lcd_set_areaFunction · 0.85
drv_lcd_initFunction · 0.85

Calls 1

spi_initFunction · 0.50

Tested by

no test coverage detected