Browse Source

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.
pull/1064/head
Karl Palsson 5 years ago
parent
commit
9e42251d6f
  1. 11
      doc/Makefile
  2. 1
      doc/efm32ezr32wg/doxy.custom
  3. 1
      doc/efm32g/doxy.custom
  4. 1
      doc/efm32gg/doxy.custom
  5. 1
      doc/efm32hg/doxy.custom
  6. 1
      doc/efm32lg/doxy.custom
  7. 1
      doc/efm32tg/doxy.custom
  8. 1
      doc/efm32wg/doxy.custom
  9. 1
      doc/gd32f1x0/doxy.custom
  10. 1
      doc/lm3s/doxy.custom
  11. 1
      doc/lm4f/doxy.custom
  12. 1
      doc/lpc13xx/doxy.custom
  13. 1
      doc/lpc17xx/doxy.custom
  14. 3
      doc/lpc43xx/doxy.custom
  15. 1
      doc/lpc43xxm0/doxy.custom
  16. 1
      doc/lpc43xxm4/doxy.custom
  17. 1
      doc/msp432e4/doxy.custom
  18. 1
      doc/sam3a/doxy.custom
  19. 1
      doc/sam3n/doxy.custom
  20. 1
      doc/sam3s/doxy.custom
  21. 1
      doc/sam3u/doxy.custom
  22. 1
      doc/sam3x/doxy.custom
  23. 1
      doc/sam4l/doxy.custom
  24. 1
      doc/samd/doxy.custom
  25. 1
      doc/stm32f0/doxy.custom
  26. 1
      doc/stm32f1/doxy.custom
  27. 1
      doc/stm32f2/doxy.custom
  28. 1
      doc/stm32f3/doxy.custom
  29. 1
      doc/stm32f4/doxy.custom
  30. 1
      doc/stm32f7/doxy.custom
  31. 1
      doc/stm32g0/doxy.custom
  32. 1
      doc/stm32l0/doxy.custom
  33. 1
      doc/stm32l1/doxy.custom
  34. 1
      doc/stm32l4/doxy.custom
  35. 1
      doc/swm050/doxy.custom
  36. 1
      doc/templates/Doxyfile_Device
  37. 1
      doc/vf6xx/doxy.custom

11
doc/Makefile

@ -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)

1
doc/efm32ezr32wg/doxy.custom

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

1
doc/efm32g/doxy.custom

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

1
doc/efm32gg/doxy.custom

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

1
doc/efm32hg/doxy.custom

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

1
doc/efm32lg/doxy.custom

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

1
doc/efm32tg/doxy.custom

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

1
doc/efm32wg/doxy.custom

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

1
doc/gd32f1x0/doxy.custom

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

1
doc/lm3s/doxy.custom

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

1
doc/lm4f/doxy.custom

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

1
doc/lpc13xx/doxy.custom

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

1
doc/lpc17xx/doxy.custom

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

3
doc/lpc43xx/doxy.custom

@ -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

1
doc/lpc43xxm0/doxy.custom

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

1
doc/lpc43xxm4/doxy.custom

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

1
doc/msp432e4/doxy.custom

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

1
doc/sam3a/doxy.custom

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

1
doc/sam3n/doxy.custom

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

1
doc/sam3s/doxy.custom

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

1
doc/sam3u/doxy.custom

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

1
doc/sam3x/doxy.custom

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

1
doc/sam4l/doxy.custom

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

1
doc/samd/doxy.custom

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

1
doc/stm32f0/doxy.custom

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

1
doc/stm32f1/doxy.custom

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

1
doc/stm32f2/doxy.custom

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

1
doc/stm32f3/doxy.custom

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

1
doc/stm32f4/doxy.custom

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

1
doc/stm32f7/doxy.custom

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

1
doc/stm32g0/doxy.custom

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

1
doc/stm32l0/doxy.custom

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

1
doc/stm32l1/doxy.custom

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

1
doc/stm32l4/doxy.custom

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

1
doc/swm050/doxy.custom

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

1
doc/templates/Doxyfile_Device

@ -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

@ -0,0 +1 @@
PREDEFINED += __ARM_ARCH_7EM__
Loading…
Cancel
Save