cnlohr / rv003usb

CH32V003 RISC-V Pure Software USB Controller
MIT License
436 stars 43 forks source link

make port configurable for DPU pin #53

Closed machdyne closed 2 months ago

machdyne commented 5 months ago

This PR makes the port for the DPU pin configurable. For example, I'm using PA for USB DP/DN and PD for DPU. I tried to keep it backwards compatible so no changes are needed in usb_config.h unless the DPU port needs to be changed.

cnlohr commented 2 months ago

@xsrf just going back through these - should we close this or? What is your recommendation?

xsrf commented 2 months ago

@cnlohr iirc it was totally fine. The setting is completely optional and didn't waste any additional bytes if not used.