diff options
| author | Damien George | 2014-04-29 22:55:34 +0100 |
|---|---|---|
| committer | Damien George | 2014-04-29 22:55:34 +0100 |
| commit | 8d09640b22714fa9c66a5a7bbf9ab59a6a0c710d (patch) | |
| tree | f8f196bf58661af9668b14f69a20c15765aa459b /stmhal/dac.c | |
| parent | 186e463a9ea5f1f1cabd928ba363fb3f0c0de4dc (diff) | |
stmhal: Add documentation in comments, and script to generate HTML.
Decided to write own script to pull documentation from comments in C code.
Style for writing auto generated documentation is: start line with ///
and then use standard markdown to write the comment. Keywords
recognised by the scraper begin with backslash. See code for examples.
Running: python gendoc.py modpyb.c accel.c adc.c dac.c extint.c i2c.c
led.c pin.c rng.c servo.c spi.c uart.c usrsw.c, will generate a HTML
structure in gendoc-out/.
gendoc.py is crude but functional. Needed something quick, and this was
it.
Diffstat (limited to 'stmhal/dac.c')
| -rw-r--r-- | stmhal/dac.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/stmhal/dac.c b/stmhal/dac.c index 73f1fb259..cd62f017f 100644 --- a/stmhal/dac.c +++ b/stmhal/dac.c @@ -13,6 +13,10 @@ #include "timer.h" #include "dac.h" +/// \moduleref pyb +/// \class DAC - digital to analog conversion +/// + STATIC DAC_HandleTypeDef DAC_Handle; void dac_init(void) { |
