This repository has been archived on 2023-11-05. You can view files and clone it, but cannot push or open issues or pull requests.
wasm-micro-runtime/core/shared/platform
Bastian Kersting a9f1c2b64a
Port WAMR to ESP-IDF (#892)
This PR introduces an implementation of the WAMR platform APIs for ESP-IDF and enables support for Espressif microcontrollers, and adds the documentation around how to build WAMR for ESP-IDF.

This PR is related to the following issues at WAMR: closes #883, #628, #449 and #668 as well as [#4735](https://github.com/espressif/esp-idf/issues/4735) at the esp-idf repo. It implements most functions required by [platform_api_vmcore.h](https://github.com/bytecodealliance/wasm-micro-runtime/blob/main/core/shared/platform/include/platform_api_vmcore.h).

The PR works in interpreter mode on Esp32c3 and Esp32. For the AOT mode, currently errors occur on both platforms with `Guru Meditation Error`. It seems that the AOT code isn't run with shared memory as os_mmap() allocates memory with malloc() API, it is to be fixed in the future.
2021-12-20 10:52:59 +08:00
..
alios Apply clang-format for core/shared and product-mini files (#785) 2021-10-14 09:12:07 +08:00
android Apply clang-format for core/shared and product-mini files (#785) 2021-10-14 09:12:07 +08:00
common Enable huge page for posix platforms (#825) 2021-11-12 16:19:26 +08:00
darwin Apply clang-format for core/shared and product-mini files (#785) 2021-10-14 09:12:07 +08:00
esp-idf Port WAMR to ESP-IDF (#892) 2021-12-20 10:52:59 +08:00
include Port WAMR to ESP-IDF (#892) 2021-12-20 10:52:59 +08:00
linux Apply clang-format for core/shared and product-mini files (#785) 2021-10-14 09:12:07 +08:00
linux-sgx Implement os_time_get_boot_microsecond() for sgx platform (#818) 2021-11-06 15:58:21 +08:00
nuttx Apply clang-format for core/shared and product-mini files (#785) 2021-10-14 09:12:07 +08:00
riot Apply clang-format for core/shared and product-mini files (#785) 2021-10-14 09:12:07 +08:00
rt-thread Apply clang-format for core/shared and product-mini files (#785) 2021-10-14 09:12:07 +08:00
vxworks Apply clang-format for core/shared and product-mini files (#785) 2021-10-14 09:12:07 +08:00
windows Apply clang-format for core/shared and product-mini files (#785) 2021-10-14 09:12:07 +08:00
zephyr Apply clang-format for core/shared and product-mini files (#785) 2021-10-14 09:12:07 +08:00
README.md re-org platform APIs, simplify porting process (#201) 2020-03-16 16:43:57 +08:00

This folder contains the platform abstract layer for multiple platforms. To support a new platform, you can simply create a new folder here and implement all the APIs defined in include folder.

Refer to port_wamr.md for how to port WAMR to a target platform.