From 19ccc4b407781e582cf6512d6dc803b0dd78ed16 Mon Sep 17 00:00:00 2001 From: DawnMagnet Date: Tue, 11 Oct 2022 12:18:02 +0800 Subject: [PATCH 1/2] add js intepreter --- board/TencentOS_Tiny_CH32V307_EVB/.cproject | 149 +- .../{.launch => TencentOS-Tiny.launch} | 48 +- board/TencentOS_Tiny_CH32V307_EVB/User/main.c | 2 +- .../examples/hello_world.c | 23 + .../javascript/tos_js.c | 1440 +++++++++++++++++ .../javascript/tos_js.h | 67 + .../javascript/tos_js_func.c | 33 + .../javascript/tos_js_func.h | 6 + 8 files changed, 1733 insertions(+), 35 deletions(-) rename board/TencentOS_Tiny_CH32V307_EVB/{.launch => TencentOS-Tiny.launch} (54%) create mode 100644 board/TencentOS_Tiny_CH32V307_EVB/javascript/tos_js.c create mode 100644 board/TencentOS_Tiny_CH32V307_EVB/javascript/tos_js.h create mode 100644 board/TencentOS_Tiny_CH32V307_EVB/javascript/tos_js_func.c create mode 100644 board/TencentOS_Tiny_CH32V307_EVB/javascript/tos_js_func.h diff --git a/board/TencentOS_Tiny_CH32V307_EVB/.cproject b/board/TencentOS_Tiny_CH32V307_EVB/.cproject index 76aea57c7..519733de5 100644 --- a/board/TencentOS_Tiny_CH32V307_EVB/.cproject +++ b/board/TencentOS_Tiny_CH32V307_EVB/.cproject @@ -48,7 +48,7 @@