acid-drop- Hacking the planet from a LilyGo T-Deck using custom firmware |
git clone git://git.acid.vegas/acid-drop.git |
Log | Files | Refs | Archive | README | LICENSE |
lv_rt_thread_port.c (716B)
1 /* 2 * Copyright (c) 2006-2021, RT-Thread Development Team 3 * 4 * SPDX-License-Identifier: MIT 5 * 6 * Change Logs: 7 * Date Author Notes 8 * 2021-10-18 Meco Man The first version 9 */ 10 11 #ifdef __RTTHREAD__ 12 13 #include <rtthread.h> 14 #define DBG_TAG "LVGL" 15 #define DBG_LVL DBG_INFO 16 #include <rtdbg.h> 17 18 #include <lvgl.h> 19 #include <lv_port_disp.h> 20 #include <lv_port_indev.h> 21 22 #if LV_USE_LOG 23 static void lv_rt_log(const char *buf) 24 { 25 LOG_I(buf); 26 } 27 #endif 28 29 static int lv_port_init(void) 30 { 31 #if LV_USE_LOG 32 lv_log_register_print_cb(lv_rt_log); 33 #endif 34 35 lv_init(); 36 37 lv_port_disp_init(); 38 lv_port_indev_init(); 39 40 return 0; 41 } 42 INIT_COMPONENT_EXPORT(lv_port_init); 43 44 #endif /*__RTTHREAD__*/