Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

frameworks/wasm:Wasm Interrupt Control Code 2.0 #2

Merged
merged 1 commit into from
Jan 14, 2025

Conversation

HoTBAIzZY
Copy link

Summary

Module Independent Dual-core Wasm Interrupt Control

Impact

Usage of Module Independent Secondary Development Version 2.0,encapsulate the low-level interrupt call API, mainly affects the interrupt trigger process.

Testing

cd vela
./build.sh ./vendor/bouffalolab/boards/bl616evb/configs/miot -j9
./build.sh menuconfig and enable following configs: INTERPRETERS_WAMR, INTERPRETERS_WAMR_AOT, INTERPRETERS_WAMR_CONFIGUABLE_BOUNDS_CHECKS, INTERPRETERS_WAMR_CUSTOM_NAME_SECTIONS, INTERPRETERS_WAMR_DUMP_CALL_STACK,INTERPRETERS_WAMR_LIBC_BUILTIN,INTERPRETERS_WAMR_LIB_PTHREAD,INTERPRETERS_WAMR_LOG,INTERPRETERS_WAMR_REF_TYPES,INTERPRETERS_WAMR_SHARED_MEMORY,INTERPRETERS_WAMR_STACKSIZE=32768,INTERPRETERS_WAMR_THREAD_MGR
flashing module
(1)Flash the nuttx.whole.bin to the module chip
(2)start wasm app iwasm --heap-size=4096 --stack-size=2048 /etc/gpio_interrupt.wasm.aot &
(3)Trigger GPIO hardware interrupt by adjusting the high and low levels of GPIO pins

Copy link
Collaborator

@buddyliao buddyliao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@no1wudi no1wudi merged commit a16f2da into open-vela:dev Jan 14, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants