doc: properly define ARM_ARCH_xxx

Requires a little stub file per target, so we can neatly define the
architecture.  This properly includes all the cortex m core
documentation finally.
This commit is contained in:
Karl Palsson 2019-06-10 10:33:34 +00:00
parent d88d6fde12
commit 9e42251d6f
37 changed files with 46 additions and 3 deletions

View File

@ -26,6 +26,7 @@ DoxygenLayout.xml: templates/DoxygenLayout_Root.xml
define gen_DOC_TARGET
DOC_TARGETS += doc_$(1)
CLEAN_TARGETS += clean_$(1)
$(1)/:
@mkdir -p $$@
@ -41,6 +42,10 @@ $(1)/DoxygenLayout_$(1).xml: templates/DoxygenLayout_Device.xml | $(1)/
doc_$(1): $(1)/doxy.sourcelist $(1)/Doxyfile $(1)/DoxygenLayout_$(1).xml
@(cd $(1); doxygen)
clean_$(1):
@$(RM) -rf $(1)/doxy.sourcelist $(1)/Doxyfile $(1)/DoxygenLayout_$1.xml $(1)/doxygen_$(1).log $(1)/html $(1)/$(1).tag
endef
$(foreach TARGET_SRC_DIR, $(TARGETS), $(eval $(call gen_DOC_TARGET,$(subst /,,$(TARGET_SRC_DIR)))))
@ -48,8 +53,8 @@ $(foreach TARGET_SRC_DIR, $(TARGETS), $(eval $(call gen_DOC_TARGET,$(subst /,,$(
html: $(DOC_TARGETS) DoxygenLayout.xml
doxygen
clean:
@rm -rf html/ $(TARGETS_DIRS) DoxygenLayout.xml doxygen.log
clean: $(CLEAN_TARGETS)
@rm -rf html/ DoxygenLayout.xml doxygen.log
.PHONY: doc html $(DOC_TARGETS)
.PHONY: doc html $(DOC_TARGETS) $(CLEAN_TARGETS)

View File

@ -0,0 +1 @@
PREDEFINED += __ARM_ARCH_7EM__

1
doc/efm32g/doxy.custom Normal file
View File

@ -0,0 +1 @@
PREDEFINED += __ARM_ARCH_7M__

1
doc/efm32gg/doxy.custom Normal file
View File

@ -0,0 +1 @@
PREDEFINED += __ARM_ARCH_7M__

1
doc/efm32hg/doxy.custom Normal file
View File

@ -0,0 +1 @@
PREDEFINED += __ARM_ARCH_6M__

1
doc/efm32lg/doxy.custom Normal file
View File

@ -0,0 +1 @@
PREDEFINED += __ARM_ARCH_7M__

1
doc/efm32tg/doxy.custom Normal file
View File

@ -0,0 +1 @@
PREDEFINED += __ARM_ARCH_7M__

1
doc/efm32wg/doxy.custom Normal file
View File

@ -0,0 +1 @@
PREDEFINED += __ARM_ARCH_7EM__

1
doc/gd32f1x0/doxy.custom Normal file
View File

@ -0,0 +1 @@
PREDEFINED += __ARM_ARCH_7M__

1
doc/lm3s/doxy.custom Normal file
View File

@ -0,0 +1 @@
PREDEFINED += __ARM_ARCH_7M__

1
doc/lm4f/doxy.custom Normal file
View File

@ -0,0 +1 @@
PREDEFINED += __ARM_ARCH_7EM__

1
doc/lpc13xx/doxy.custom Normal file
View File

@ -0,0 +1 @@
PREDEFINED += __ARM_ARCH_7M__

1
doc/lpc17xx/doxy.custom Normal file
View File

@ -0,0 +1 @@
PREDEFINED += __ARM_ARCH_7M__

3
doc/lpc43xx/doxy.custom Normal file
View File

@ -0,0 +1,3 @@
# Empty file to satisfy doxygen include.
# this directory is for shared code between m3 and m4 cores of lpc43xx
# So needs no predefined arch macros

View File

@ -0,0 +1 @@
PREDEFINED += __ARM_ARCH_6M__

View File

@ -0,0 +1 @@
PREDEFINED += __ARM_ARCH_7EM__

1
doc/msp432e4/doxy.custom Normal file
View File

@ -0,0 +1 @@
PREDEFINED += __ARM_ARCH_7EM__

1
doc/sam3a/doxy.custom Normal file
View File

@ -0,0 +1 @@
PREDEFINED += __ARM_ARCH_7M__

1
doc/sam3n/doxy.custom Normal file
View File

@ -0,0 +1 @@
PREDEFINED += __ARM_ARCH_7M__

1
doc/sam3s/doxy.custom Normal file
View File

@ -0,0 +1 @@
PREDEFINED += __ARM_ARCH_7M__

1
doc/sam3u/doxy.custom Normal file
View File

@ -0,0 +1 @@
PREDEFINED += __ARM_ARCH_7M__

1
doc/sam3x/doxy.custom Normal file
View File

@ -0,0 +1 @@
PREDEFINED += __ARM_ARCH_7M__

1
doc/sam4l/doxy.custom Normal file
View File

@ -0,0 +1 @@
PREDEFINED += __ARM_ARCH_7EM__

1
doc/samd/doxy.custom Normal file
View File

@ -0,0 +1 @@
PREDEFINED += __ARM_ARCH_6M__

1
doc/stm32f0/doxy.custom Normal file
View File

@ -0,0 +1 @@
PREDEFINED += __ARM_ARCH_6M__

1
doc/stm32f1/doxy.custom Normal file
View File

@ -0,0 +1 @@
PREDEFINED += __ARM_ARCH_7M__

1
doc/stm32f2/doxy.custom Normal file
View File

@ -0,0 +1 @@
PREDEFINED += __ARM_ARCH_7M__

1
doc/stm32f3/doxy.custom Normal file
View File

@ -0,0 +1 @@
PREDEFINED += __ARM_ARCH_7EM__

1
doc/stm32f4/doxy.custom Normal file
View File

@ -0,0 +1 @@
PREDEFINED += __ARM_ARCH_7EM__

1
doc/stm32f7/doxy.custom Normal file
View File

@ -0,0 +1 @@
PREDEFINED += __ARM_ARCH_7EM__

1
doc/stm32g0/doxy.custom Normal file
View File

@ -0,0 +1 @@
PREDEFINED += __ARM_ARCH_6M__

1
doc/stm32l0/doxy.custom Normal file
View File

@ -0,0 +1 @@
PREDEFINED += __ARM_ARCH_6M__

1
doc/stm32l1/doxy.custom Normal file
View File

@ -0,0 +1 @@
PREDEFINED += __ARM_ARCH_7M__

1
doc/stm32l4/doxy.custom Normal file
View File

@ -0,0 +1 @@
PREDEFINED += __ARM_ARCH_7EM__

1
doc/swm050/doxy.custom Normal file
View File

@ -0,0 +1 @@
PREDEFINED += __ARM_ARCH_6M__

View File

@ -1,6 +1,7 @@
@INCLUDE = ../Doxyfile_common
INPUT = ../../include/libopencm3/license.dox
@INCLUDE = doxy.sourcelist
@INCLUDE = doxy.custom
WARN_LOGFILE = doxygen_#device#.log
LAYOUT_FILE = DoxygenLayout_#device#.xml
GENERATE_TAGFILE = #device#.tag

1
doc/vf6xx/doxy.custom Normal file
View File

@ -0,0 +1 @@
PREDEFINED += __ARM_ARCH_7EM__