LVGL 库提交

This commit is contained in:
2026-08-30 08:57:07 +08:00
parent 0b59118ddd
commit bc07701ed5
1056 changed files with 556743 additions and 45 deletions
@@ -0,0 +1,61 @@
/**
* @file lv_sprintf_rtthread.c
*
*/
/*********************
* INCLUDES
*********************/
#include "../../lv_conf_internal.h"
#if LV_USE_STDLIB_SPRINTF == LV_STDLIB_RTTHREAD
#include <rtthread.h>
#include <stdarg.h>
#include "../lv_sprintf.h"
#if LV_USE_FLOAT == 1
#warning "lv_sprintf_rtthread: rtthread not support float in sprintf"
#endif
/*********************
* DEFINES
*********************/
/**********************
* TYPEDEFS
**********************/
/**********************
* STATIC PROTOTYPES
**********************/
/**********************
* STATIC VARIABLES
**********************/
/**********************
* MACROS
**********************/
/**********************
* GLOBAL FUNCTIONS
**********************/
int lv_snprintf(char * buffer, size_t count, const char * format, ...)
{
va_list va;
va_start(va, format);
const int ret = rt_vsnprintf(buffer, count, format, va);
va_end(va);
return ret;
}
int lv_vsnprintf(char * buffer, size_t count, const char * format, va_list va)
{
return rt_vsnprintf(buffer, count, format, va);
}
/**********************
* STATIC FUNCTIONS
**********************/
#endif /*LV_STDLIB_RTTHREAD*/