-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #89 from project-mahiwa/feat/wifi
feat Wifi機能の実装,mahiwa対応,数値系printの実装
- Loading branch information
Showing
17 changed files
with
112 additions
and
7,431 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,3 +35,8 @@ build | |
*.exe | ||
*.out | ||
*.app | ||
|
||
|
||
# 環境パスが入って毎回diffるので対象外 | ||
.vscode/c_cpp_properties.json | ||
.vscode/launch.json |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#include <lib/wasm-functions/mahiwa/wifi/wifi.hpp> | ||
m3ApiRawFunction(m3_print) | ||
{ | ||
// cppcheck-suppress cstyleCast | ||
m3ApiGetArgMem(const uint8_t *, out); | ||
// cppcheck-suppress cstyleCast | ||
m3ApiGetArg(uint32_t, out_len); | ||
byte buff[out_len + 1]; | ||
memcpy(buff, out, out_len); | ||
buff[out_len] = '\0'; | ||
Serial.print((char *)buff); | ||
m3ApiSuccess(); | ||
} | ||
|
||
M3Result mahiwa_LinkWifi(IM3Runtime runtime) | ||
{ | ||
IM3Module module = runtime->modules; | ||
const char *serial = "wifi"; | ||
|
||
m3_LinkRawFunction(module, serial, "print", "v(*i)", &m3_print); | ||
|
||
return m3Err_none; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#pragma once | ||
|
||
#include <m3_env.h> | ||
#include <Arduino.h> | ||
|
||
M3Result mahiwa_LinkWifi(IM3Runtime runtime); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
user.h |
Oops, something went wrong.