Implement native function pointer check, addr conversion and register, update documents (#185)
Modified WASM runtime API: - wasm_runtime_module_malloc() - wasm_runtime_lookup_function() Introduced runtime API - wasm_runtime_register_natives()
This commit is contained in:
@ -112,3 +112,9 @@ First, connect PC and STM32 with UART. Then install to use host_tool.</br>
|
||||
- Install AOT version WASM application
|
||||
`wamrc --target=thumbv7 --target-abi=eabi --cpu=cortex-m7 -o ui_app.aot ui_app.wasm`
|
||||
`./host_tool -D /dev/ttyUSBXXX -i ui_app -f ui_app.aot`
|
||||
|
||||
|
||||
|
||||
The graphic user interface demo photo:
|
||||
|
||||

|
||||
@ -42,7 +42,6 @@ include_directories(
|
||||
set (SOURCES
|
||||
${PROJECT_SRC_DIR}/main.c
|
||||
${PROJECT_SRC_DIR}/iwasm_main.c
|
||||
${PROJECT_SRC_DIR}/../../ext_lib_export.c
|
||||
${LV_DRIVERS_SOURCES}
|
||||
)
|
||||
|
||||
|
||||
@ -1,12 +0,0 @@
|
||||
#include "lib_export.h"
|
||||
#include "sensor_native_api.h"
|
||||
#include "connection_native_api.h"
|
||||
#include "gui_native_api.h"
|
||||
|
||||
static NativeSymbol extended_native_symbol_defs[] = {
|
||||
#include "runtime_sensor.inl"
|
||||
#include "connection.inl"
|
||||
#include "wamr_gui.inl"
|
||||
};
|
||||
|
||||
#include "ext_lib_export.h"
|
||||
@ -73,5 +73,4 @@ target_sources(app PRIVATE
|
||||
${LVGL_DRV_SRCS}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../src/platform/zephyr/main.c
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../src/platform/zephyr/iwasm_main.c
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../src/ext_lib_export.c
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user