From af47aec5e767bf24284ba7d73cee620530245c7a Mon Sep 17 00:00:00 2001 From: Janne Grunau Date: Sun, 18 Jan 2026 10:36:42 +0100 Subject: [PATCH 1/3] Update stale link to USB-PD documentation Point to the USB-PD page in Asahi Linux Documentation. Signed-off-by: Janne Grunau --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 681145c..3bb9848 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ This is a simple tool for sending and receiving USB-PD VDM messages using a FUSB302, based on [usb-c-arduino](https://github.com/graycatlabs/usb-c-arduino). -USB-PD VDM documentation is [here](https://github.com/AsahiLinux/docs/wiki/Hardware:USB-PD) +USB-PD VDM documentation is [here](https://asahilinux.org/docs/hw/soc/usb-pd/) # Wiring #### Bare FUSB From 5c1e5fb3c67075fd2c877090390461b9e79bb76e Mon Sep 17 00:00:00 2001 From: Janne Grunau Date: Sun, 18 Jan 2026 10:38:01 +0100 Subject: [PATCH 2/3] Add function declaration to fix platformio build Signed-off-by: Janne Grunau --- vdmtool/vdmtool.ino | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vdmtool/vdmtool.ino b/vdmtool/vdmtool.ino index 1c7c993..a6efa35 100644 --- a/vdmtool/vdmtool.ino +++ b/vdmtool/vdmtool.ino @@ -320,6 +320,8 @@ void evt_packet(void) { handle_msg(sop, hdr, msg); } +void vdm_fun(); + void evt_sent(void) { switch (st) { case STATE_DFP_VBUS_ON: From 658cb5f7209f7d28fdde23deddc024f89fe7a841 Mon Sep 17 00:00:00 2001 From: Janne Grunau Date: Sun, 18 Jan 2026 11:00:35 +0100 Subject: [PATCH 3/3] Support building with platformio Only supported/tested board is Arduino Nano Every. Signed-off-by: Janne Grunau --- .gitignore | 1 + platformio.ini | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 .gitignore create mode 100644 platformio.ini diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7f58644 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/.pio diff --git a/platformio.ini b/platformio.ini new file mode 100644 index 0000000..9bf1a24 --- /dev/null +++ b/platformio.ini @@ -0,0 +1,7 @@ +[platformio] +src_dir = vdmtool + +[env:nano_every] +platform = atmelmegaavr +board = nano_every +framework = arduino