package embox.driver.spi

module core {
	option string log_level="LOG_NONE"

	@IncludeExport(path="drivers")
	source "spi.h", "spi_controller.h", "spi_dma.h"

	source "spi.c"
	source "spi_dev.c"
	source "spi_dev_repo.c"
	source "spi_controller_repo.c"

	depends embox.device.char_dev
	depends embox.driver.dma.dma_api

	@NoRuntime depends embox.device.pin_description
}

module spi0_dev0 {
	option string log_level="LOG_NONE"

	option boolean bconf_use=false

	option string dev_name ="SPI0_0"
	option number cs_port = 0xff
	option number cs_pin = 0xff
	option number cs_func = 0xff
	option number cs_pullup = 0
	option number cs_pushpull = 0

	source "spi0_dev0.c"
}


module spi1_dev0 {
	option string log_level="LOG_NONE"

	option boolean bconf_use=false

	option string dev_name ="SPI1_0"
	option number cs_port = 0xff
	option number cs_pin = 0xff
	option number cs_func = 0xff
	option number cs_pullup = 0
	option number cs_pushpull = 0

	source "spi1_dev0.c"
}

module spi2_dev0 {
	option string log_level="LOG_NONE"

	option boolean bconf_use=false

	option string dev_name ="SPI2_0"
	option number cs_port = 0xff
	option number cs_pin = 0xff
	option number cs_func = 0xff
	option number cs_pullup = 0
	option number cs_pushpull = 0

	source "spi2_dev0.c"
}

module spi3_dev0 {
	option string log_level="LOG_NONE"

	option boolean bconf_use=false

	option string dev_name ="SPI3_0"
	option number cs_port = 0xff
	option number cs_pin = 0xff
	option number cs_func = 0xff
	option number cs_pullup = 0
	option number cs_pushpull = 0

	source "spi3_dev0.c"
}

module spi4_dev0 {
	option string log_level="LOG_NONE"

	option boolean bconf_use=false

	option string dev_name ="SPI4_0"
	option number cs_port = 0xff
	option number cs_pin = 0xff
	option number cs_func = 0xff
	option number cs_pullup = 0
	option number cs_pushpull = 0

	source "spi4_dev0.c"
}

module spi5_dev0 {
	option string log_level="LOG_NONE"

	option boolean bconf_use=false

	option string dev_name ="SPI5_0"
	option number cs_port = 0xff
	option number cs_pin = 0xff
	option number cs_func = 0xff
	option number cs_pullup = 0
	option number cs_pushpull = 0

	source "spi5_dev0.c"
}
