ataradov / free-dap

Free and open implementation of the CMSIS-DAP debugger firmware
BSD 3-Clause "New" or "Revised" License
261 stars 62 forks source link

Where do you keep the platform specific code #12

Closed ooxi closed 4 years ago

ooxi commented 4 years ago

The free-dap platform directories contain a lot of infrastructure code e.g. usart.c. Was this code specifically written for free-dap, or do you keep souce code somewhere else?

I looked at your mcu-starter-projects repository but couldn't find it anywhere else.

Reason I'm asking is, I want to extend samd21 platform with USART functionality and don't want to reinvent the wheel.

ataradov commented 4 years ago

All my code is written specifically for the project. I may borrow from older projects if I know that I wrote something similar already. It is not worth it to create a universal driver, when targeted driver here is just 200 lines of code.

In general, a couple projects that contain a lot of useful sample code are https://github.com/ataradov/siggen and https://github.com/ataradov/dgw. I borrow from them a lot.

ooxi commented 4 years ago

Thank you!