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

Function rtgui_lcd_init

bsp/loongson/ls1cdev/drivers/display_controller.c:246–264  ·  view source on GitHub ↗

initialize for gui driver */

Source from the content-addressed store, hash-verified

244
245/* initialize for gui driver */
246int rtgui_lcd_init(void)
247{
248 rt_device_t dc;
249 rt_kprintf("DC initied\n");
250
251 pin_set_purpose(76, PIN_PURPOSE_OTHER);
252 pin_set_remap(76, PIN_REMAP_DEFAULT);
253
254 /* init Display Controller */
255 rt_hw_dc_init();
256
257 /* find Display Controller device */
258 dc = rt_device_find("dc");
259
260 /* set Display Controller device as rtgui graphic driver */
261 rtgui_graphic_set_device(dc);
262
263 return 0;
264}
265
266INIT_DEVICE_EXPORT(rtgui_lcd_init);
267

Callers

nothing calls this directly

Calls 5

rt_kprintfFunction · 0.85
rt_device_findFunction · 0.85
rt_hw_dc_initFunction · 0.70
pin_set_purposeFunction · 0.50
pin_set_remapFunction · 0.50

Tested by

no test coverage detected