1# This is not a platform proper; but is used to build a merged set of documentation
2
3set(PICO_RP2040 "1" CACHE INTERNAL "")
4set(PICO_RP2350 "1" CACHE INTERNAL "")
5set(PICO_RISCV "1" CACHE INTERNAL "")
6set(PICO_ARM "1" CACHE INTERNAL "")
7set(PICO_COMBINED_DOCS "1" CACHE INTERNAL "")
8# have to pick one for platform stuff, so lets go with rp2350
9set(RP2_VARIANT_DIR ${CMAKE_CURRENT_LIST_DIR}/rp2350)
10# pick latest version
11set(PICO_PIO_VERSION "1" CACHE INTERNAL "")
12set(PICO_CMSIS_DEVICE "RP2350" CACHE INTERNAL "")
13
14# Add RP2040 structs too, since there are distinct enums in there
15pico_add_doxygen(rp2040/hardware_structs)
16# but we DO want dreq.h; it doesn't change much, so lets just use configure_file
17# (note we don't add rp2040/hardware_regs because of the size)
18configure_file(rp2040/hardware_regs/include/hardware/regs/dreq.h ${CMAKE_CURRENT_BINARY_DIR}/extra_doxygen/dreq_rp2040.h COPYONLY)
19# also intctrl.h
20configure_file(rp2040/hardware_regs/include/hardware/regs/intctrl.h ${CMAKE_CURRENT_BINARY_DIR}/extra_doxygen/intctrl_rp2040.h COPYONLY)
21pico_add_doxygen(${CMAKE_CURRENT_BINARY_DIR}/extra_doxygen)
22
23pico_add_doxygen_pre_define("PICO_RP2040=1")
24pico_add_doxygen_pre_define("PICO_RP2350=1")
25pico_add_doxygen_pre_define("PICO_COMBINED_DOCS=1")
26pico_add_doxygen_pre_define("NUM_DOORBELLS=1") # we have functions that are gated by this
27pico_add_doxygen_enabled_section(combined_docs)
28pico_add_doxygen_enabled_section(rp2040_specific)
29pico_add_doxygen_enabled_section(rp2350_specific)
30
31include(cmake/rp2_common.cmake)
32
33