hathach / tinyusb

An open source cross-platform USB stack for embedded system
https://www.tinyusb.org
MIT License
4.86k stars 1.03k forks source link

Split examples into a separate repo #855

Open tannewt opened 3 years ago

tannewt commented 3 years ago

Is your feature request related to a problem? Please describe. I was reading #851 and thought that another maintainability change would be to move the examples and the HALs used by them to a separate repo.

Describe the solution you'd like TinyUSB is commonly submoduled into other repos (CircuitPython, pico-sdk and esp-idf all do this iirc). Splitting the examples and the HAL code for them would make the submodule of the TinyUSB core much smaller. The projects that submodule TinyUSB usually have their own HAL code so submoduling TinyUSB leads to duplication.

hathach commented 3 years ago

source only repo can be used for this purpose https://github.com/hathach/tinyusb_src , it is update by ci whenever an file within src is updated. I have also thought of spliting the example+hal code as well, but currently having multiple repos will require lots more time for maintaining work. the tinyusb_src can be a good approach for now.

Update: Will try to see if CMake could help to maintain multiple repos easier.