add WINUSB support

This commit is contained in:
XIVN1987
2022-01-12 20:42:20 +08:00
parent ee0153372d
commit dd6c3f791f
46 changed files with 45768 additions and 7706 deletions
+5
View File
@@ -1,11 +1,16 @@
## DAPLink
DAPLink (CMSIS-DAP) based on Nuvoton M480, supports SWD and CDC.
In the C/C++ page of Keil Option Window:
* Define `DAP_FW_V1`: generate CMSIS-DAP V1 firmware, using HID transport protocol.
* Do not define `DAP_FW_V1`: Generate CMSIS-DAP V2 firmware, using WINUSB transfer protocol.
### Pin map
| FUNC | Pin |
| :---- | :---- |
| SWD_CLK | PA.1 |
| SWD_DIO | PA.0 |
| SWD_RST | PF.4 |
| CDC_TXD | PB.1 |
| CDC_RXD | PB.0 |
| LED_SWD | PA.2 |