Skip to content

Commit f5c9bdf

Browse files
Ken Sarkiesesden
authored andcommitted
Changes to doxygen markup to solve a few problems that upset
doxygen, and to correct minor errors.
1 parent bad5580 commit f5c9bdf

29 files changed

+149
-55
lines changed

HACKING_COMMON_DOC

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,20 @@ NOTE: The common source files MUST have the "dispatch" header so that
3535
compilation will use the specific defines for the subfamily being compiled.
3636
These can differ between subfamilies.
3737

38+
NOTE: The common source files must have a line of the form
39+
40+
#ifdef LIBOPENCM3_xxx_H
41+
42+
where xxx is the associated peripheral name. This prevents the common files
43+
from being included accidentally into a user's application. This however
44+
causes doxygen to skip processing of the remainder of the file. Thus a
45+
46+
@cond ... @endcond
47+
48+
directive must be placed around the statement to prevent doxygen from
49+
processing it. This works only for doxygen 1.8.4 or later. At the present
50+
time most distros have an earlier buggy version.
51+
3852
Documentation
3953
-------------
4054

doc/HACKING

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ functions and defines in the documentation.
3333
The header and source files for each peripheral in each family must have a
3434
heading section in which an @defgroup defines the group name for the particular
3535
peripheral. This group name will be the same across all families as each one
36-
is documented deparately. Thus for a peripheral xxx the header will have a
36+
is documented separately. Thus for a peripheral xxx the header will have a
3737
group name xxx_defines and the source file will have xxx_file. This will allow
3838
the group to appear separately. An @ingroup must be provided to place the group
3939
as a subgroup of the appropriate family grouping. Note that @file is not used.
@@ -78,6 +78,7 @@ LAYOUT_FILE = DoxygenLayout_$processor.xml
7878
WARN_LOGFILE = doxygen_$processor.log
7979
TAGFILES = ../cm3/cm3.tag=../../cm3/html
8080
GENERATE_TAGFILE = $processor.tag
81+
PREDEFINED = list of macro definitions
8182

8283
For the top level Doxyfile
8384

doc/stm32f1/Doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ TAGFILES = ../cm3/cm3.tag=../../cm3/html
3333

3434
GENERATE_TAGFILE = stm32f1.tag
3535

36-
ENABLE_PREPROCESSING = NO
36+
ENABLE_PREPROCESSING = YES
3737

3838

doc/stm32f2/Doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ TAGFILES = ../cm3/cm3.tag=../../cm3/html
3232

3333
GENERATE_TAGFILE = stm32f2.tag
3434

35-
ENABLE_PREPROCESSING = NO
35+
ENABLE_PREPROCESSING = YES
3636

3737

doc/stm32f4/Doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ TAGFILES = ../cm3/cm3.tag=../../cm3/html
3232

3333
GENERATE_TAGFILE = stm32f4.tag
3434

35-
ENABLE_PREPROCESSING = NO
35+
ENABLE_PREPROCESSING = YES
3636

3737

doc/stm32l1/Doxyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ TAGFILES = ../cm3/cm3.tag=../../cm3/html
3636

3737
GENERATE_TAGFILE = stm32l1.tag
3838

39-
ENABLE_PREPROCESSING = NO
39+
ENABLE_PREPROCESSING = YES
4040

4141

include/libopencm3/stm32/common/crc_common_all.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@
2727
The order of header inclusion is important. crc.h includes the device
2828
specific memorymap.h header before including this header file.*/
2929

30+
/** @cond */
3031
#ifdef LIBOPENCM3_CRC_H
32+
/** @endcond */
3133
#ifndef LIBOPENCM3_CRC_COMMON_ALL_H
3234
#define LIBOPENCM3_CRC_COMMON_ALL_H
3335

@@ -94,7 +96,9 @@ END_DECLS
9496
/**@}*/
9597

9698
#endif
99+
/** @cond */
97100
#else
98101
#warning "crc_common_all.h should not be included explicitly, only via crc.h"
99102
#endif
103+
/** @endcond */
100104

include/libopencm3/stm32/common/dac_common_all.h

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@
2929
The order of header inclusion is important. dac.h includes the device
3030
specific memorymap.h header before including this header file.*/
3131

32+
/** @cond */
3233
#ifdef LIBOPENCM3_DAC_H
34+
/** @endcond */
3335
#ifndef LIBOPENCM3_DAC_COMMON_ALL_H
3436
#define LIBOPENCM3_DAC_COMMON_ALL_H
3537

@@ -93,7 +95,7 @@ specific memorymap.h header before including this header file.*/
9395
*/
9496
#define DAC_CR_MAMP2_SHIFT 24
9597
/** @defgroup dac_mamp2 DAC Channel 2 LFSR Mask and Triangle Wave Amplitude values
96-
@ingroup STM32F_dac_defines
98+
@ingroup dac_defines
9799
98100
Unmask bits [(n-1)..0] of LFSR/Triangle Amplitude equal to (2**(n)-1
99101
@{*/
@@ -122,7 +124,7 @@ Unmask bits [(n-1)..0] of LFSR/Triangle Amplitude equal to (2**(n)-1
122124
#define DAC_CR_WAVE2_SHIFT 22
123125
#define DAC_CR_WAVE2_DIS (0x3 << DAC_CR_WAVE2_SHIFT)
124126
/** @defgroup dac_wave2_en DAC Channel 2 Waveform Generation Enable
125-
@ingroup STM32F_dac_defines
127+
@ingroup dac_defines
126128
127129
@li NOISE: Noise wave generation enabled
128130
@li TRI: Triangle wave generation enabled
@@ -153,7 +155,7 @@ Unmask bits [(n-1)..0] of LFSR/Triangle Amplitude equal to (2**(n)-1
153155
*/
154156
#define DAC_CR_TSEL2_SHIFT 19
155157
/** @defgroup dac_trig2_sel DAC Channel 2 Trigger Source Selection
156-
@ingroup STM32F_dac_defines
158+
@ingroup dac_defines
157159
158160
@li T6: Timer 6 TRGO event
159161
@li T3: Timer 3 TRGO event
@@ -205,7 +207,7 @@ Unmask bits [(n-1)..0] of LFSR/Triangle Amplitude equal to (2**(n)-1
205207
*/
206208
#define DAC_CR_MAMP1_SHIFT 8
207209
/** @defgroup dac_mamp1 DAC Channel 1 LFSR Mask and Triangle Wave Amplitude values
208-
@ingroup STM32F_dac_defines
210+
@ingroup dac_defines
209211
210212
Unmask bits [(n-1)..0] of LFSR/Triangle Amplitude equal to (2**(n+1)-1
211213
@{*/
@@ -234,7 +236,7 @@ Unmask bits [(n-1)..0] of LFSR/Triangle Amplitude equal to (2**(n+1)-1
234236
#define DAC_CR_WAVE1_SHIFT 6
235237
#define DAC_CR_WAVE1_DIS (0x3 << DAC_CR_WAVE1_SHIFT)
236238
/** @defgroup dac_wave1_en DAC Channel 1 Waveform Generation Enable
237-
@ingroup STM32F_dac_defines
239+
@ingroup dac_defines
238240
239241
@li DIS: wave generation disabled
240242
@li NOISE: Noise wave generation enabled
@@ -266,7 +268,7 @@ Unmask bits [(n-1)..0] of LFSR/Triangle Amplitude equal to (2**(n+1)-1
266268
*/
267269
#define DAC_CR_TSEL1_SHIFT 3
268270
/** @defgroup dac_trig1_sel DAC Channel 1 Trigger Source Selection
269-
@ingroup STM32F_dac_defines
271+
@ingroup dac_defines
270272
271273
@li T6: Timer 6 TRGO event
272274
@li T3: Timer 3 TRGO event
@@ -408,9 +410,11 @@ void dac_software_trigger(data_channel dac_channel);
408410
END_DECLS
409411

410412
#endif
413+
/** @cond */
411414
#else
412415
#warning "dac_common_all.h should not be included explicitly, only via dac.h"
413416
#endif
417+
/** @endcond */
414418

415419
/**@}*/
416420

include/libopencm3/stm32/common/dma_common_f13.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@
3131
The order of header inclusion is important. dma.h includes the device
3232
specific memorymap.h header before including this header file.*/
3333

34+
/** @cond */
3435
#ifdef LIBOPENCM3_DMA_H
36+
/** @endcond */
3537
#ifndef LIBOPENCM3_DMA_COMMON_F13_H
3638
#define LIBOPENCM3_DMA_COMMON_F13_H
3739

@@ -395,9 +397,11 @@ void dma_set_number_of_data(u32 dma, u8 channel, u16 number);
395397
END_DECLS
396398

397399
#endif
400+
/** @cond */
398401
#else
399402
#warning "dma_common_f13.h should not be included explicitly, only via dma.h"
400403
#endif
404+
/** @endcond */
401405

402406
/**@}*/
403407

include/libopencm3/stm32/common/dma_common_f24.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@
2828
The order of header inclusion is important. dma.h includes the device
2929
specific memorymap.h header before including this header file.*/
3030

31+
/** @cond */
3132
#ifdef LIBOPENCM3_DMA_H
33+
/** @endcond */
3234
#ifndef LIBOPENCM3_DMA_COMMON_F24_H
3335
#define LIBOPENCM3_DMA_COMMON_F24_H
3436

@@ -608,7 +610,9 @@ void dma_set_number_of_data(u32 dma, u8 stream, u16 number);
608610
END_DECLS
609611
/**@}*/
610612
#endif
613+
/** @cond */
611614
#else
612615
#warning "dma_common_f24.h should not be included explicitly, only via dma.h"
613616
#endif
617+
/** @endcond */
614618

0 commit comments

Comments
 (0)