package platform.stm32.h7.nucleo_h743zi

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

@Build(stage=1)
@BuildDepends(nucleo_h743zi_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-H743ZI/Templates/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-H743ZI/Templates/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-H743ZI/Templates/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_h743zi_conf
	@NoRuntime depends platform.stm32.stm32cube_compat
}
