Skip to content

Instantly share code, notes, and snippets.

@Novakov
Created January 11, 2023 19:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Novakov/205400073df5a94df412f3c81e87d988 to your computer and use it in GitHub Desktop.
Save Novakov/205400073df5a94df412f3c81e87d988 to your computer and use it in GitHub Desktop.
set(OPENCM3_ROOT ${opencm3_SOURCE_DIR})
find_package(Python3)
set(IRQ_IN_FILE include/libopencm3/stm32/f7/irq.json)
add_custom_command(
OUTPUT ${OPENCM3_ROOT}/include/libopencm3/stm32/f7/nvic.h
COMMAND ${Python3_EXECUTABLE} ${OPENCM3_ROOT}/scripts/irq2nvic_h ./${IRQ_IN_FILE}
WORKING_DIRECTORY ${OPENCM3_ROOT}
DEPENDS ${OPENCM3_ROOT}/${IRQ_IN_FILE}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment