2021-10-18 07:55:20 -05:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2006-2021, RT-Thread Development Team
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2021-10-15 Meco Man The first version
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef LV_RT_THREAD_CONF_H
|
|
|
|
#define LV_RT_THREAD_CONF_H
|
|
|
|
|
|
|
|
#ifdef __RTTHREAD__
|
|
|
|
|
|
|
|
#define LV_RTTHREAD_INCLUDE <rtthread.h>
|
|
|
|
#include LV_RTTHREAD_INCLUDE
|
|
|
|
|
|
|
|
/*=========================
|
2023-11-27 14:28:29 +08:00
|
|
|
STDLIB WRAPPER SETTINGS
|
2021-10-18 07:55:20 -05:00
|
|
|
*=========================*/
|
|
|
|
|
|
|
|
#ifdef RT_USING_HEAP
|
2023-11-27 14:28:29 +08:00
|
|
|
#define LV_USE_STDLIB_MALLOC LV_STDLIB_RTTHREAD
|
2021-10-18 07:55:20 -05:00
|
|
|
#endif
|
|
|
|
|
2023-11-27 14:28:29 +08:00
|
|
|
#define LV_USE_STDLIB_STRING LV_STDLIB_RTTHREAD
|
|
|
|
|
|
|
|
#if LV_USE_FLOAT == 0
|
|
|
|
#define LV_USE_STDLIB_SPRINTF LV_STDLIB_RTTHREAD
|
|
|
|
#endif
|
2021-10-18 07:55:20 -05:00
|
|
|
|
2023-11-27 14:28:29 +08:00
|
|
|
/*=================
|
|
|
|
* OPERATING SYSTEM
|
|
|
|
*=================*/
|
2021-10-18 07:55:20 -05:00
|
|
|
|
2023-11-27 14:28:29 +08:00
|
|
|
#define LV_USE_OS LV_OS_RTTHREAD
|
2021-10-18 07:55:20 -05:00
|
|
|
|
|
|
|
/*-------------
|
|
|
|
* Asserts
|
|
|
|
*-----------*/
|
|
|
|
|
|
|
|
#define LV_ASSERT_HANDLER_INCLUDE LV_RTTHREAD_INCLUDE
|
|
|
|
#define LV_ASSERT_HANDLER RT_ASSERT(0);
|
|
|
|
|
|
|
|
/*=====================
|
|
|
|
* COMPILER SETTINGS
|
|
|
|
*====================*/
|
|
|
|
|
2022-01-25 06:37:51 -05:00
|
|
|
#ifdef ARCH_CPU_BIG_ENDIAN
|
2023-11-27 14:28:29 +08:00
|
|
|
#define LV_BIG_ENDIAN_SYSTEM 1
|
2021-10-18 07:55:20 -05:00
|
|
|
#else
|
2023-11-27 14:28:29 +08:00
|
|
|
#define LV_BIG_ENDIAN_SYSTEM 0
|
2021-10-18 07:55:20 -05:00
|
|
|
#endif
|
|
|
|
|
2022-12-13 05:45:24 -05:00
|
|
|
#ifdef rt_align /* >= RT-Thread v5.0.0 */
|
2023-11-27 14:28:29 +08:00
|
|
|
#define LV_ATTRIBUTE_MEM_ALIGN rt_align(RT_ALIGN_SIZE)
|
2022-12-13 05:45:24 -05:00
|
|
|
#else
|
2023-11-27 14:28:29 +08:00
|
|
|
#define LV_ATTRIBUTE_MEM_ALIGN ALIGN(RT_ALIGN_SIZE)
|
2022-12-13 05:45:24 -05:00
|
|
|
#endif
|
2021-10-18 07:55:20 -05:00
|
|
|
|
2021-12-20 03:52:07 -05:00
|
|
|
/*==================
|
|
|
|
* EXAMPLES
|
|
|
|
*==================*/
|
|
|
|
|
2022-05-12 03:35:28 -04:00
|
|
|
#ifdef PKG_LVGL_USING_EXAMPLES
|
2023-11-27 14:28:29 +08:00
|
|
|
#define LV_BUILD_EXAMPLES 1
|
2021-12-20 03:52:07 -05:00
|
|
|
#endif
|
|
|
|
|
2021-10-18 07:55:20 -05:00
|
|
|
/*--END OF LV_RT_THREAD_CONF_H--*/
|
|
|
|
|
|
|
|
#endif /*__RTTHREAD__*/
|
|
|
|
|
|
|
|
#endif /*LV_CONF_H*/
|