feat(rt-thread): implement rt-thread sconscirpt (#2674)

This commit is contained in:
Jianting (Meco) Man
2021-10-18 07:55:20 -05:00
committed by GitHub
parent 58ea2787b4
commit 9ece84de16
4 changed files with 191 additions and 7 deletions

View File

@@ -0,0 +1,32 @@
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: MIT
*
* Change Logs:
* Date Author Notes
* 2021-10-18 Meco Man The first version
*/
#include <rtthread.h>
#include <lvgl.h>
#define DBG_TAG "LVGL"
#define DBG_LVL DBG_INFO
#include <rtdbg.h>
#if LV_USE_LOG && LV_LOG_PRINTF
static void lv_rt_log(const char *buf)
{
LOG_I(buf);
}
#endif
static int lv_port_init(void)
{
#if LV_USE_LOG && LV_LOG_PRINTF
lv_log_register_print_cb(lv_rt_log);
#endif
return 0;
}
INIT_COMPONENT_EXPORT(lv_port_init);