acid-drop- Hacking the planet from a LilyGo T-Deck using custom firmware |
git clone git://git.acid.vegas/acid-drop.git |
Log | Files | Refs | Archive | README | LICENSE |
lv_test_helpers.h (483B)
1 #ifndef LV_TEST_HELPERS_H 2 #define LV_TEST_HELPERS_H 3 4 #ifdef LVGL_CI_USING_SYS_HEAP 5 /* Skip checking heap as we don't have the info available */ 6 #define LV_HEAP_CHECK(x) do {} while(0) 7 /* Pick a non-zero value */ 8 #define lv_test_get_free_mem() (65536) 9 #else 10 #define LV_HEAP_CHECK(x) x 11 12 static inline uint32_t lv_test_get_free_mem(void) 13 { 14 lv_mem_monitor_t m1; 15 lv_mem_monitor(&m1); 16 return m1.free_size; 17 } 18 #endif /* LVGL_CI_USING_SYS_HEAP */ 19 20 21 #endif /*LV_TEST_HELPERS_H*/ 22 23