1/** 2 * @file lv_os_custom.c 3 * 4 */ 5 6/********************* 7 * INCLUDES 8 *********************/ 9#include "lv_os.h" 10 11#if LV_USE_OS == LV_OS_CUSTOM 12#include "../misc/lv_types.h" 13#include "../misc/lv_assert.h" 14 15/********************* 16 * DEFINES 17 *********************/ 18 19/********************** 20 * TYPEDEFS 21 **********************/ 22 23/********************** 24 * STATIC PROTOTYPES 25 **********************/ 26 27/********************** 28 * STATIC VARIABLES 29 **********************/ 30 31/********************** 32 * MACROS 33 **********************/ 34 35/********************** 36 * GLOBAL FUNCTIONS 37 **********************/ 38 39lv_result_t lv_thread_init(lv_thread_t * thread, const char * const name, lv_thread_prio_t prio, void (*callback)(void *), size_t stack_size, 40 void * user_data) 41{ 42 LV_UNUSED(thread); 43 LV_UNUSED(name); 44 LV_UNUSED(callback); 45 LV_UNUSED(prio); 46 LV_UNUSED(stack_size); 47 LV_UNUSED(user_data); 48 LV_ASSERT(0); 49 return LV_RESULT_INVALID; 50} 51 52lv_result_t lv_thread_delete(lv_thread_t * thread) 53{ 54 LV_UNUSED(thread); 55 LV_ASSERT(0); 56 return LV_RESULT_INVALID; 57} 58 59lv_result_t lv_mutex_init(lv_mutex_t * mutex) 60{ 61 LV_UNUSED(mutex); 62 return LV_RESULT_OK; 63} 64 65lv_result_t lv_mutex_lock(lv_mutex_t * mutex) 66{ 67 LV_UNUSED(mutex); 68 return LV_RESULT_OK; 69} 70 71lv_result_t lv_mutex_lock_isr(lv_mutex_t * mutex) 72{ 73 LV_UNUSED(mutex); 74 return LV_RESULT_OK; 75} 76 77lv_result_t lv_mutex_unlock(lv_mutex_t * mutex) 78{ 79 LV_UNUSED(mutex); 80 return LV_RESULT_OK; 81} 82 83lv_result_t lv_mutex_delete(lv_mutex_t * mutex) 84{ 85 LV_UNUSED(mutex); 86 return LV_RESULT_OK; 87} 88 89lv_result_t lv_thread_sync_init(lv_thread_sync_t * sync) 90{ 91 LV_UNUSED(sync); 92 LV_ASSERT(0); 93 return LV_RESULT_INVALID; 94} 95 96lv_result_t lv_thread_sync_wait(lv_thread_sync_t * sync) 97{ 98 LV_UNUSED(sync); 99 LV_ASSERT(0); 100 return LV_RESULT_INVALID; 101} 102 103lv_result_t lv_thread_sync_signal(lv_thread_sync_t * sync) 104{ 105 LV_UNUSED(sync); 106 LV_ASSERT(0); 107 return LV_RESULT_INVALID; 108} 109 110lv_result_t lv_thread_sync_delete(lv_thread_sync_t * sync) 111{ 112 LV_UNUSED(sync); 113 LV_ASSERT(0); 114 return LV_RESULT_INVALID; 115} 116 117/********************** 118 * STATIC FUNCTIONS 119 **********************/ 120 121#endif /*LV_USE_OS == LV_OS_CUSTOM*/ 122