p.kaczmarek2 wrote: I am not sure about this AWK stuff. It seems to just introduce whole new dependency (which is not available on Windows by default) just to put pin roles in single file that is later converted to code...
I see your point, is just a proposal.
On the other hand - the Makefile uses many programms not directly available on Windows afaik (like wget, diff, grep, ...)
Maybe we can agree on a combined approach?
The "result" of AWK is a headerfile (rolesNchannels.h) with all pin/role/channel related input, used by different files.
We can generate this file once, so no need to have awk e.g. on Windows, and decide if in Makefile generate it by default on every run or we can also generate a new header-file only on changes in the input file.
Or in the future can leave all this generating the file but edit "rolesNchannels.h".
At least for the "ENABLE_USE_PINROLE_CHAN_DESC" the awk approach has some possibility: I'm working on an approach to add channel description with minimal overhead by extending the actual transferred information "channels per role" to encode the channel use in the number, too (an integer can carry much more information than 0, 1, 2 ...).
"Coding" this information is easy with awk, but it might also be done differently.
p.kaczmarek2 wrote: Maybe we should rather first try fixing getcommands.js for docs for current system, and then, for example, try to make it more automatic or try to deploy docs to gh pages etc etc with each build in main tree.
The documentation is only part of the "problem" - I didn't deep dive into this file, so I didn't know, what was intended to change inside code and simply completely disabled it.
p.kaczmarek2 wrote:
I've did final cosmetic for OTA HAL - moved it to pin files. I don't think I've broken anything, so now it's time to do on-change interrupt...
Good to hear, sadly I'm not at home so I can't test atm ...