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

Function drv_lcd_cmd

bsp/k210/drivers/drv_lcd.c:140–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138static struct lcd_8080_device _lcddev;
139
140static void drv_lcd_cmd(lcd_8080_device_t lcd, rt_uint8_t cmd)
141{
142 gpiohs_set_pin(lcd->dc_pin, GPIO_PV_LOW);
143 spi_init(lcd->spi_channel, SPI_WORK_MODE_0, SPI_FF_OCTAL, 8, 0);
144 spi_init_non_standard(lcd->spi_channel, 8 /*instrction length*/, 0 /*address length*/, 0 /*wait cycles*/,
145 SPI_AITM_AS_FRAME_FORMAT /*spi address trans mode*/);
146 spi_send_data_normal_dma(lcd->dma_channel, lcd->spi_channel, lcd->cs, &cmd, 1, SPI_TRANS_CHAR);
147}
148
149static void drv_lcd_data_byte(lcd_8080_device_t lcd, rt_uint8_t *data_buf, rt_uint32_t length)
150{

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