initialize for gui driver */
| 244 | |
| 245 | /* initialize for gui driver */ |
| 246 | int 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 | |
| 266 | INIT_DEVICE_EXPORT(rtgui_lcd_init); |
| 267 |
nothing calls this directly
no test coverage detected