@@ -1,6 +1,6 @@
#include "luat_base.h"
#include "luat_fs.h"
-#include "luat_malloc.h"
+#include "luat_mem.h"
extern const struct luat_vfs_filesystem vfs_fs_posix;
@@ -2,7 +2,7 @@
#include "luat_log.h"
#include "luat_uart.h"
#include "printf.h"
#include <stdio.h>
@@ -5,7 +5,7 @@
#include <stdlib.h>
#include <string.h>//add for memset
#include "bget.h"
#define LUAT_LOG_TAG "vmheap"
#include "luat_msgbus.h"
#include "luat_luadb.h"
#ifdef LUAT_USE_LVGL
#include "luat_timer.h"
#define LUAT_LOG_TAG "win32"
@@ -11,7 +11,7 @@
#include <stdbool.h>
#include "windows.h"
@@ -9,7 +9,7 @@
*
*/
@@ -1,5 +1,5 @@
#include "luat_camera.h"
#include "luat_zbuff.h"
#define LUAT_LOG_TAG "camera"
@@ -175,7 +175,7 @@ typedef struct internal_hooks
// return realloc(pointer, size);
// }
// #else
#define internal_malloc luat_heap_malloc
#define internal_free luat_heap_free
#define internal_realloc luat_heap_realloc
@@ -4,7 +4,7 @@ LuatOS cmux
#include "lua.h"
#include "stdlib.h"
#define LUAT_LOG_TAG "cmux"
@@ -20,7 +20,7 @@
#include "c_common.h"
#include "luat_crypto.h"
#define LUAT_LOG_TAG "crypto"
#include "luat_sys.h"
#include "luat_spi.h"
#include "luat_gpio.h"
#include "luat_mcu.h"
#ifdef LUAT_USE_DHCP
#include "luat_network_adapter.h"
@@ -1,7 +1,7 @@
#ifdef LUAT_USE_DNS
#include "platform_def.h"
#include "dns_def.h"
#ifdef LUAT_USE_MOBILE
@@ -29,7 +29,7 @@
#ifndef LUAT_LOG_TAG
#define LUAT_LOG_TAG "fal"
@@ -25,7 +25,7 @@ if cdata then
end
#define LUAT_LOG_TAG "fastlz"
@@ -90,7 +90,7 @@ DRESULT diskio_open(BYTE pdrv, block_disk_t * disk) {
return RES_OK;
}
DRESULT diskio_close(BYTE pdrv) {
if (pdrv >= FF_VOLUMES || disks[pdrv].opts == NULL) {
return RES_NOTRDY;
#define LUAT_LOG_TAG "ramdisk"
#ifdef __LUATOS__
#include "lauxlib.h"
#endif
@@ -16,7 +16,7 @@
/*------------------------------------------------------------------------*/
- #include "luat_malloc.h"
+ #include "luat_mem.h"
#else
#include <stdlib.h> /* with POSIX API */
@@ -14,7 +14,7 @@
#include "luat_sdio.h"
#include "ff.h" /* Obtains integer types */
@@ -10,7 +10,7 @@
#include "flashdb.h"
#include "luat_fskv.h"
#include "luat_sfd.h"
@@ -30,7 +30,7 @@ fskv与fdb的实现机制导致的差异
@tag LUAT_USE_GMSSL
#include "luat_str.h"
#include <time.h>
@@ -12,7 +12,7 @@
#include "luat_lcd.h"
#include "epdpaint.h"
#include "i2c_utils.h"
#define LUAT_LOG_TAG "i2c tools"
#include "luat_i2c.h"
#define LUAT_LOG_TAG "i2c"
@@ -44,7 +44,7 @@
#define LIB_NAME "iconv"
#define LIB_VERSION LIB_NAME " r5"
#include "time.h"
#include "luat_rtos.h"
#define LUAT_LOG_TAG "lcd"
#define LUAT_LOG_TAG "custom"
#
#include "lfs.h"
//--------------------------------
#define LFS_NO_ASSERT 1
#define LFS_NO_DEBUG 1
#define LFS_NO_WARN 1
@@ -4,7 +4,7 @@
#define LUAT_LOG_TAG "lfs2"
@@ -27,7 +27,7 @@ freely, subject to the following restrictions:
#define LODEPNG_H
#include <string.h> /*for size_t*/
extern const char* LODEPNG_VERSION_STRING;
#include "sx126x/radio.h"
#include "sx126x/sx126x.h"
#include "strbuf.h"
#define LUAT_LOG_TAG "cjson"
@@ -7,7 +7,7 @@
#define LUAT_LOG_TAG "fonts"
#include "lprefix.h"
#define ldump_c
#define LUA_CORE
#include "luat_lvgl.h"
typedef struct luat_lv {
#include "lvgl.h"
#if LV_USE_ANIMATION
/*
@@ -8,7 +8,7 @@
int luat_lv_btnmatrix_set_map(lua_State *L) {
LV_DEBUG("CALL lv_btnmatrix_set_map");
int luat_lv_calendar_set_highlighted_dates(lua_State *L) {
LV_DEBUG("CALL lv_calendar_set_highlighted_dates");
static lv_res_t _canvas_gc(struct _lv_obj_t * obj, lv_signal_t sign, void * param) {
#include "../lv_demos/lv_examples.h"
lvgl benchmark demo
创建一个lv_draw_mask_radius_param_t
int luat_lv_dropdown_get_selected_str(lua_State *L) {
LV_DEBUG("CALL lv_dropdown_get_selected_str");
#include "luat_lvgl_fonts.h"
int luat_lv_gauge_set_needle_count(lua_State *L) {
LV_DEBUG("CALL lv_gauge_set_needle_count");
static lv_indev_data_t point_emulator_data = {0};
static lv_indev_data_t keyboard_emulator_data = {0};
int luat_lv_line_set_points(lua_State *L) {
LV_DEBUG("CALL lv_line_set_points");
int luat_lv_msgbox_add_btns(lua_State *L) {
int luat_lv_roller_get_selected_str(lua_State *L) {
创建一个style
int luat_lv_tileview_set_valid_positions(lua_State *L) {
LV_DEBUG("CALL lv_tileview_set_valid_positions");
#define LUAT_LOG_TAG "lv_mem"
#define LUAT_LVGL_MEM
//#include "luat_base.h"
-//#include "luat_malloc.h"
+//#include "luat_mem.h"
void* luat_lvgl_malloc(int len);
void* luat_lvgl_free(void* ptr);
@@ -22,7 +22,7 @@
#define LUAT_LOG_TAG "sdl2"
#ifdef LUAT_USE_LVGL_SDL2
#include <stdint.h>
#include <string.h>
/*********************
* DEFINES
#include "luat_profiler.h"
#define LUAT_LOG_TAG "profiler"
@@ -21,7 +21,7 @@ if cdata then
#define LUAT_LOG_TAG "miniz"
#include "luat_rtc.h"
@@ -41,7 +41,7 @@ end)
#include "MLX90640_I2C_Driver.h"
extern mlx90640_i2c_t mlx90640_i2c;
#include <MLX90640_I2C_Driver.h>
#include <MLX90640_API.h>
#include <math.h>
@@ -25,7 +25,7 @@ log.info("snr", mobile.snr())
log.info("simid", mobile.simid())
@@ -27,7 +27,7 @@ extern "C" {
#define oscl_malloc luat_heap_malloc
#define oscl_free luat_heap_free
#define oscl_memset memset
@@ -25,7 +25,7 @@
#define malloc luat_heap_malloc
#define free luat_heap_free
#include <dtx.h>
@@ -15,7 +15,7 @@
#include "luat_multimedia.h"
#include "luat_audio.h"
#ifndef __BSP_COMMON_H__
#define LUAT_LOG_TAG "codec"
#ifdef LUAT_SUPPORT_AMR
#include "mp3_decode/minimp3.h"
extern void DBG_Printf(const char* format, ...);
#define DBG(x,y...) DBG_Printf("%s %d:"x"\r\n", __FUNCTION__,__LINE__,##y)
#define _MINIMP3_IMPLEMENTATION_GUARD
#include "luat_mem.h"
#ifdef LUAT_BSP_NOT_SUPPORT_FLOAT
#include "nes.h"
@tag LUAT_USE_NETWORK
// #ifdef LUAT_USE_NETWORK
#ifdef LUAT_USE_NETWORK
#include "luat_ctiot.h"
#define LUAT_LOG_TAG "ctiot"
#include "er-coap-13.h"
@@ -46,7 +46,7 @@
#define LUAT_LOG_TAG "coap"
@@ -26,7 +26,7 @@ end
#include "luat_pm.h"
#include "luat_httpsrv.h"
@@ -28,7 +28,7 @@
#include <libemqtt.h>
#define MQTT_DUP_FLAG (1<<3)
#define MQTT_QOS0_FLAG (0<<1)
@@ -38,7 +38,7 @@
#include "libemqtt.h"
#include "luat_mqtt.h"
#define LUAT_LOG_TAG "mqtt"
@@ -3,7 +3,7 @@
#include "luat_ftp.h"