mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
refactor(type): move lv_value_precise_t to lv_types.h (#4943)
Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
This commit is contained in:
parent
888e043af1
commit
8273493a84
@ -30,7 +30,25 @@ fout.write(
|
||||
#define LV_CONF_INTERNAL_H
|
||||
/* clang-format off */
|
||||
|
||||
#include "misc/lv_types.h"
|
||||
/*Config options*/
|
||||
#define LV_OS_NONE 0
|
||||
#define LV_OS_PTHREAD 1
|
||||
#define LV_OS_FREERTOS 2
|
||||
#define LV_OS_CMSIS_RTOS2 3
|
||||
#define LV_OS_RTTHREAD 4
|
||||
#define LV_OS_WINDOWS 5
|
||||
#define LV_OS_CUSTOM 255
|
||||
|
||||
#define LV_STDLIB_BUILTIN 0
|
||||
#define LV_STDLIB_CLIB 1
|
||||
#define LV_STDLIB_MICROPYTHON 2
|
||||
#define LV_STDLIB_RTTHREAD 3
|
||||
#define LV_STDLIB_CUSTOM 255
|
||||
|
||||
#define LV_DRAW_SW_ASM_NONE 0
|
||||
#define LV_DRAW_SW_ASM_NEON 1
|
||||
#define LV_DRAW_SW_ASM_MVE 2
|
||||
#define LV_DRAW_SW_ASM_CUSTOM 255
|
||||
|
||||
/* Handle special Kconfig options */
|
||||
#ifndef LV_KCONFIG_IGNORE
|
||||
@ -156,14 +174,6 @@ LV_EXPORT_CONST_INT(LV_DPI_DEF);
|
||||
|
||||
#undef _LV_KCONFIG_PRESENT
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#if LV_USE_FLOAT
|
||||
typedef float lv_value_precise_t;
|
||||
#else
|
||||
typedef int32_t lv_value_precise_t;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/*Set some defines if a dependency is disabled*/
|
||||
#if LV_USE_LOG == 0
|
||||
#define LV_LOG_LEVEL LV_LOG_LEVEL_NONE
|
||||
|
@ -14,6 +14,7 @@ extern "C" {
|
||||
* INCLUDES
|
||||
*********************/
|
||||
#include "../lv_conf_internal.h"
|
||||
#include "../misc/lv_types.h"
|
||||
|
||||
/*********************
|
||||
* DEFINES
|
||||
|
@ -8,7 +8,25 @@
|
||||
#define LV_CONF_INTERNAL_H
|
||||
/* clang-format off */
|
||||
|
||||
#include "misc/lv_types.h"
|
||||
/*Config options*/
|
||||
#define LV_OS_NONE 0
|
||||
#define LV_OS_PTHREAD 1
|
||||
#define LV_OS_FREERTOS 2
|
||||
#define LV_OS_CMSIS_RTOS2 3
|
||||
#define LV_OS_RTTHREAD 4
|
||||
#define LV_OS_WINDOWS 5
|
||||
#define LV_OS_CUSTOM 255
|
||||
|
||||
#define LV_STDLIB_BUILTIN 0
|
||||
#define LV_STDLIB_CLIB 1
|
||||
#define LV_STDLIB_MICROPYTHON 2
|
||||
#define LV_STDLIB_RTTHREAD 3
|
||||
#define LV_STDLIB_CUSTOM 255
|
||||
|
||||
#define LV_DRAW_SW_ASM_NONE 0
|
||||
#define LV_DRAW_SW_ASM_NEON 1
|
||||
#define LV_DRAW_SW_ASM_MVE 2
|
||||
#define LV_DRAW_SW_ASM_CUSTOM 255
|
||||
|
||||
/* Handle special Kconfig options */
|
||||
#ifndef LV_KCONFIG_IGNORE
|
||||
@ -2944,14 +2962,6 @@ LV_EXPORT_CONST_INT(LV_DPI_DEF);
|
||||
|
||||
#undef _LV_KCONFIG_PRESENT
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#if LV_USE_FLOAT
|
||||
typedef float lv_value_precise_t;
|
||||
#else
|
||||
typedef int32_t lv_value_precise_t;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/*Set some defines if a dependency is disabled*/
|
||||
#if LV_USE_LOG == 0
|
||||
#define LV_LOG_LEVEL LV_LOG_LEVEL_NONE
|
||||
|
@ -14,6 +14,7 @@ extern "C" {
|
||||
* INCLUDES
|
||||
*********************/
|
||||
#include "../lv_conf_internal.h"
|
||||
#include "lv_types.h"
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
|
@ -13,6 +13,7 @@ extern "C" {
|
||||
/*********************
|
||||
* INCLUDES
|
||||
*********************/
|
||||
#include "../lv_conf_internal.h"
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#include <stdint.h>
|
||||
@ -35,25 +36,6 @@ extern "C" {
|
||||
|
||||
#endif
|
||||
|
||||
#define LV_OS_NONE 0
|
||||
#define LV_OS_PTHREAD 1
|
||||
#define LV_OS_FREERTOS 2
|
||||
#define LV_OS_CMSIS_RTOS2 3
|
||||
#define LV_OS_RTTHREAD 4
|
||||
#define LV_OS_WINDOWS 5
|
||||
#define LV_OS_CUSTOM 255
|
||||
|
||||
#define LV_STDLIB_BUILTIN 0
|
||||
#define LV_STDLIB_CLIB 1
|
||||
#define LV_STDLIB_MICROPYTHON 2
|
||||
#define LV_STDLIB_RTTHREAD 3
|
||||
#define LV_STDLIB_CUSTOM 255
|
||||
|
||||
#define LV_DRAW_SW_ASM_NONE 0
|
||||
#define LV_DRAW_SW_ASM_NEON 1
|
||||
#define LV_DRAW_SW_ASM_MVE 2
|
||||
#define LV_DRAW_SW_ASM_CUSTOM 255
|
||||
|
||||
/**********************
|
||||
* TYPEDEFS
|
||||
**********************/
|
||||
@ -94,6 +76,12 @@ typedef int32_t lv_intptr_t;
|
||||
|
||||
#endif
|
||||
|
||||
#if LV_USE_FLOAT
|
||||
typedef float lv_value_precise_t;
|
||||
#else
|
||||
typedef int32_t lv_value_precise_t;
|
||||
#endif
|
||||
|
||||
#endif /*__ASSEMBLY__*/
|
||||
|
||||
/**********************
|
||||
|
Loading…
x
Reference in New Issue
Block a user