diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7f58644 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/.pio 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 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 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: