slint icon indicating copy to clipboard operation
slint copied to clipboard

Reorganize MCU board support examples into modules

Open task-jp opened this issue 6 months ago • 4 comments

Move MCU board support example files into their own directories as mod.rs files.

task-jp avatar Jun 26 '25 23:06 task-jp

Hmmm. I think the majority of modules in our repo don't use subdir/mod.rs. Is there a specific future change that you have in mind that benefits from this?

tronical avatar Jul 03 '25 16:07 tronical

There is one source code and one directory for each board support, but IDE and file managers display directories and files separately (directories come first), so the two are separated, which is inconvenient.

If the source code could be moved under the directory, it would be much easier to work on board support tasks by working only under that directory. There is no strong intention to unify using mod.rs, so keeping the source file names as they are is fine.

Additionally, since it is anticipated that more board supports will be added in the future (right?), having the mcu-board-support directory clean and organised would be preferable.

task-jp avatar Jul 04 '25 04:07 task-jp

There is no strong intention to unify using mod.rs, so keeping the source file names as they are is fine.

Unless there's a good reason to handle things differently in this sub-directory, I'd prefer to keep a consistent way of handling modules across the entire repository then and not use mod.rs.

tronical avatar Jul 11 '25 13:07 tronical

I kept file names as they were.

task-jp avatar Jul 15 '25 10:07 task-jp