package embox.driver.video

@BuildDepends(third_party.bsp.st_bsp_api)
module stm32f429i_lcd {
	option string log_level="LOG_ERR"

	option number fb_base = 0xD0000000
	option number ltdc_irq = 88
	option number height = 320
	option number width = 240
	option number bpp = 16
	option boolean use_fb_section = false
	option string fb_section_start = ""

	source "stm32f429i_lcd.c"

	depends embox.driver.video.fb
	depends third_party.bsp.st_bsp_api
}

@BuildDepends(third_party.bsp.st_bsp_api)
module stm32f7_lcd {
	option string log_level="LOG_ERR"

	option number fb_base = 0xc0000000
	option number ltdc_irq = 88
	option number height = 272
	option number width = 480
	option number bpp = 32
	option boolean use_fb_section = false
	option string fb_section_start = ""

	source "stm32cube_lcd.c"

	depends embox.driver.video.fb
	depends third_party.bsp.st_bsp_api
	depends third_party.bsp.stmf7cube.sdram
}

@BuildDepends(third_party.bsp.st_bsp_api)
module stm32h7_lcd {
	option string log_level="LOG_ERR"

	option number fb_base = 0xD0000000
	option number ltdc_irq = 88
	option number height = 272
	option number width = 480
	option number bpp = 32
	option boolean use_fb_section = false
	option string fb_section_start = ""

	source "stm32cube_lcd.c"

	depends embox.driver.video.fb
	depends third_party.bsp.st_bsp_api
	depends third_party.bsp.stmh7cube.sdram
}

@BuildDepends(third_party.bsp.st_bsp_api)
module stm32f7_custom_lcd {
	option string log_level="LOG_ERR"

	option number fb_base = 0xc0000000
	option number ltdc_irq = 88
	option number height = 272
	option number width = 480
	option number bpp = 32
	option boolean use_fb_section = false
	option string fb_section_start = ""

	option number hsync = 41  /* Horizontal synchronization */
	option number hbp = 13    /* Horizontal back porch      */
	option number hfp = 32    /* Horizontal front porch     */
	option number vsync = 10  /* Vertical synchronization   */
	option number vbp = 2     /* Vertical back porch        */
	option number vfp = 2     /* Vertical front porch       */

	source "stm32cube_custom_lcd_drv.c"
	source "stm32cube_custom_lcd.c"

	depends embox.driver.video.fb
	depends third_party.bsp.st_bsp_api
	depends third_party.bsp.stmf7cube.sdram
}

