package platform.stm32.h7.nucleo_h745zi_q

@Build(stage=1)
@BuildArtifactPath(cppflags="-DSTM32H745xx -DCORE_CM7")
static module nucleo_h745zi_q_conf extends third_party.bsp.stmh7cube.stm32h7_conf {
	@IncludeExport(path="")
	source "stm32h7xx_hal_conf.h"
}

@Build(stage=1)
@BuildDepends(nucleo_h745zi_q_conf)
@BuildDepends(third_party.bsp.stmh7cube.cube)
@BuildArtifactPath(cppflags="$(addprefix -I$(EXTERNAL_BUILD_DIR)/third_party/bsp/stmh7cube/cube/STM32CubeH7-1.8.0/,Drivers/BSP/STM32H7xx_Nucleo Projects/NUCLEO-H745ZI-Q/Templates/BootCM4_CM7/Common/Inc)")
static module bsp extends third_party.bsp.st_bsp_api {
	source "clock_config.c"

	@AddPrefix("^BUILD/extbld/third_party/bsp/stmh7cube/cube")
	source "STM32CubeH7-1.8.0/Projects/NUCLEO-H745ZI-Q/Templates/BootCM4_CM7//Common/Src/system_stm32h7xx.c"

	@IncludePath("$(EXTERNAL_BUILD_DIR)/third_party/bsp/stmh7cube/cube/STM32CubeH7-1.8.0/Drivers/BSP/STM32H7xx_Nucleo")
	@IncludePath("$(EXTERNAL_BUILD_DIR)/third_party/bsp/stmh7cube/cube/STM32CubeH7-1.8.0/Projects/NUCLEO-H745ZI-Q/Templates/BootCM4_CM7/Common/Inc")
	@AddPrefix("^BUILD/extbld/third_party/bsp/stmh7cube/cube/STM32CubeH7-1.8.0/Drivers/BSP/STM32H7xx_Nucleo")
	source "stm32h7xx_nucleo.c"

	@NoRuntime depends third_party.bsp.stmh7cube.cube
	@NoRuntime depends nucleo_h745zi_q_conf
	@NoRuntime depends platform.stm32.stm32cube_compat
}
