Page 1 of 1

How to build HAL documentation for a specific port?

Posted: Tue Jul 21, 2015 12:23 pm
by hyOzd
Now that sourceforge is down, I would like to create the HAL documentation for STM32 port. Like this one (currently link is down) http://chibios.sourceforge.net/docs/hal ... dedafe5e80

I can create the generic doxygen documentation using `ChibiOs/doc/hal/Doxyfile_html` but how can I create the one specific to STM32?

Re: How to build HAL documentation for a specific port?

Posted: Tue Jul 21, 2015 12:29 pm
by Giovanni
Hi,

Take the generic HAL doxyfile and add the files you need, note that you need to include the files for a specific STM32 or you would have multiple ADCs, mutiple SPIs etc.

I will look into including builders in next releases.

Giovanni

Re: How to build HAL documentation for a specific port?

Posted: Tue Jul 21, 2015 1:55 pm
by hyOzd
Thanks for the tip.

I think this will work for now. There are a bunch of warnings, mostly related to incorrect file name declarations in the comments. Nothing serious : )

Code: Select all

INPUT                  = ./src \
                         ../../os/hal/ports/STM32/LLD/ \
                         ../../os/hal/ports/STM32/LLD/DACv1/ \
                         ../../os/hal/ports/STM32/LLD/DMAv1/ \
                         ../../os/hal/ports/STM32/LLD/GPIOv1/ \
                         ../../os/hal/ports/STM32/LLD/GPIOv2/ \
                         ../../os/hal/ports/STM32/LLD/I2Cv1/ \
                         ../../os/hal/ports/STM32/LLD/I2Cv2/ \
                         ../../os/hal/ports/STM32/LLD/OTGv1/ \
                         ../../os/hal/ports/STM32/LLD/RTCv1/ \
                         ../../os/hal/ports/STM32/LLD/RTCv2/ \
                         ../../os/hal/ports/STM32/LLD/SPIv1/ \
                         ../../os/hal/ports/STM32/LLD/SPIv2/ \
                         ../../os/hal/ports/STM32/LLD/TIMv1/ \
                         ../../os/hal/ports/STM32/LLD/USARTv1/ \
                         ../../os/hal/ports/STM32/LLD/USARTv2/ \
                         ../../os/hal/ports/STM32/LLD/USBv1/ \
                         ../../os/hal/ports/STM32/STM32F4xx/ \
                         ../../os/hal/dox \
                         ../../os/hal/src \
                         ../../os/hal/include \
                         ../../os/hal/templates/osal


Here is the full file if anyone is interested https://gist.github.com/hyOzd/e307c4bae7fac8be18e5 .

Re: How to build HAL documentation for a specific port?

Posted: Tue Jul 21, 2015 3:05 pm
by Giovanni
Good point, I have not built it for a while so some groups are messed up after the source tree reorganization. Will fix before next release.

Giovanni