tinyusb icon indicating copy to clipboard operation
tinyusb copied to clipboard

Split examples into a separate repo

Open tannewt opened this issue 4 years ago • 1 comments

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.

tannewt avatar May 27 '21 17:05 tannewt

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.

hathach avatar May 27 '21 17:05 hathach