-
I'm looking for a way to build documentation for supported functions for board's pins in a table/matrix form.
For example, MBED has some graphical representation of the supported functions, In my case, I was particularly looking into how many and which timers are there available for use. I tried to get data into a simple table manually (and I see mbed code and modm have different opinions in some cases).
This manual process obviously doesn't scale and is error-prone. |
Beta Was this translation helpful? Give feedback.
Replies: 11 comments
-
Absolutely!
the compiler will throw error(s) if any alternate function is wrongly configured. I think the right approach is to generate the missing description here (e.g. as a table) so that it will appear in the documentation. All necessary data are available in the file The |
Beta Was this translation helpful? Give feedback.
-
There's also It still doesn't give you an overview per peripheral, only per pin unfortunately. But it's still very useful. If you're motivated, I would like to see a HTML version of this that we can generate locally for your specific device and also host on |
Beta Was this translation helpful? Give feedback.
-
It could be done that way, but I would prefer to integrate that with the existing Doxypress documentation at https://docs.modm.io/. That's where most people are already looking for it anyway...
I don't see the benefit of creating another domain. Why not like this (If it cannot be integrated into the Doxypress documentation or should be more interactive (Javascript or similar) than Doxypress allows): |
Beta Was this translation helpful? Give feedback.
-
Yes, of course we should integrate it into the Doxygen docs first! I was mainly thinking of implementing a pinout picker like CubeMX, but in a standalone lightweight HTML+JS website (can certainly be hosted on docs.modm.io/pinout/device). Including a small JS code gen for the specific modm config. As a stretch goal, code gen for other HALs could be added. |
Beta Was this translation helpful? Give feedback.
-
I mean, how difficult can it possibly be to clone this functionality? 😇 #FamousLastWords |
Beta Was this translation helpful? Give feedback.
-
Although playing around with CubeMX: It's so slow… and still surprisingly bad: There's a search field, but I cannot search for signals, only for PINS. WAT?!? I would want a pinout table and graphic that I can both search and filter. |
Beta Was this translation helpful? Give feedback.
-
@cocasema I don't have a hot fix for you now, except perhaps using That table but as a dynamic HTML plus the above graphic layout is basically what I would want. |
Beta Was this translation helpful? Give feedback.
-
@salkinium Thanks a lot for the useful links and info! |
Beta Was this translation helpful? Give feedback.
-
Here's a very hacky HTML generator for the above AF table: |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot for the script! I was able to get the info I was looking for:
|
Beta Was this translation helpful? Give feedback.
-
FYI: I had started to build a tool to replace CubeMX, for ChibiOS: https://aktos.io/chibi-config/ It would be fun to build a web based tool to mimic CubeMX functionality, for modm (or even STM HAL), but will require a lot of effort, of course. I planned to take advantage of https://github.com/modm-io/modm-devices, however the progress is somewhat stalled for now. |
Beta Was this translation helpful? Give feedback.
Thanks a lot for the script! I was able to get the info I was looking for: