package platform.stm32.f4.stm32f429i_discovery

@BuildArtifactPath(cppflags="-DSTM32F429xx -DUSE_STM32F429I_DISCOVERY")
static module stm32f429i_discovery_conf extends third_party.bsp.stmf4cube.stm32f4_conf {
	@IncludeExport(path="")
	source "stm32f4xx_hal_conf.h"
}

@Build(stage=1)
@BuildDepends(stm32f429i_discovery_conf)
@BuildDepends(third_party.bsp.stmf4cube.cube)
@BuildArtifactPath(cppflags="-I$(EXTERNAL_BUILD_DIR)/third_party/bsp/stmf4cube/cube/STM32CubeF4-1.27.1/Drivers/BSP/STM32F429I-Discovery")
@BuildDepends(third_party.bsp.stmf4cube.bsp_drivers.stm324xg_eval_sd)
static module bsp extends third_party.bsp.st_bsp_api {
	option boolean errata_spi_wrong_last_bit=false

	source "clock_config.c"

	@AddPrefix("^BUILD/extbld/third_party/bsp/stmf4cube/cube/STM32CubeF4-1.27.1/")
	source "Projects/STM32F429I-Discovery/Templates/Src/system_stm32f4xx.c"

	@AddPrefix("^BUILD/extbld/third_party/bsp/stmf4cube/cube/STM32CubeF4-1.27.1/")
	source "Drivers/BSP/STM32F429I-Discovery/stm32f429i_discovery.c",
	 "Drivers/BSP/STM32F429I-Discovery/stm32f429i_discovery_sdram.c",
	 "Drivers/BSP/STM32F429I-Discovery/stm32f429i_discovery_lcd.c",
	 "Drivers/BSP/STM32F429I-Discovery/stm32f429i_discovery_io.c",
	 "Drivers/BSP/STM32F429I-Discovery/stm32f429i_discovery_ts.c"

	@NoRuntime depends third_party.bsp.stmf4cube.components.ili9341
	@NoRuntime depends third_party.bsp.stmf4cube.components.stmpe811
	@NoRuntime depends third_party.bsp.stmf4cube.bsp_drivers.stm324xg_eval_sd
	@NoRuntime depends third_party.bsp.stmf4cube.cube
	@NoRuntime depends stm32f429i_discovery_conf
	@NoRuntime depends platform.stm32.stm32cube_compat
}
