package genconfig

configuration conf {
	include embox.arch.system(core_freq=216000000)
	include embox.arch.arm.cortexm3.bundle
	include embox.arch.arm.armmlib.cpu_idle
	include embox.arch.arm.libarch
	include embox.arch.arm.vfork
	include embox.arch.arm.cxxabi

	@Runlevel(0) include embox.arch.arm.cortexm3.armv7m_cpu_cache(
		log_level="LOG_DEBUG",
		sram_nocache_section_size=0x4000,
		nocache_region0_addr=0x60000000, nocache_region0_size=0x00100000
	)

	/* Enable FPU */
	include embox.arch.arm.fpu.cortex_m7_fp
	@Runlevel(0) include embox.arch.arm.fpu.fpv5(log_level="LOG_INFO")

	include platform.stm32.platform_init
	include platform.stm32.platform_shutdown
	include platform.stm32.f7.stm32746g_discovery.bsp
	@Runlevel(0) include third_party.bsp.stmf7cube.sdram(fmc_swap=true)

	@Runlevel(0) include embox.driver.interrupt.cortexm_nvic(irq_table_size=128)
	@Runlevel(1) include embox.driver.clock.cortexm_systick
	include embox.kernel.time.jiffies(cs_name="cortexm_systick")

	include embox.driver.serial.stm_usart_f7
	include embox.driver.serial.stm_diag(baud_rate=115200, usartx=1)
	include embox.driver.diag(impl="embox__driver__serial__stm_diag")
	include embox.driver.serial.stm_ttyS0(baud_rate=115200, usartx=1)
	// include embox.driver.serial.stm_ttyS1(baud_rate=115200, usartx=1)

	@Runlevel(0) include embox.driver.flash.stm32f7_qspi
	include embox.driver.block_dev

	@Runlevel(2) include embox.driver.video.stm32f7_lcd(fb_base=0x60000000)

	include embox.driver.video.fb

	include embox.driver.sd.stm32f746g_discovery_sd

	@Runlevel(2) include embox.driver.net.stm32f7cube_eth
	include embox.kernel.stack(stack_size=0x4000, alignment=8)

	include embox.kernel.task.multi
	include embox.kernel.task.resource.idesc_table(idesc_table_size=10)

	include embox.kernel.thread.thread_local_heap
	include embox.kernel.thread.thread_cancel_disable
	include embox.kernel.thread.signal.siginfoq(siginfo_pool_sz=8)
	include embox.kernel.timer.sleep_nosched
	include embox.kernel.sched.sched
	include embox.kernel.sched.idle_light

	include embox.kernel.thread.core(thread_pool_size=2, thread_stack_size=0x8000, thread_stack_align=8)

	/* tty requires */
	include embox.kernel.thread.mutex
	include embox.driver.tty.tty(rx_buff_sz=16, io_buff_sz=16)
	include embox.driver.tty.task_breaking_disable

	include embox.kernel.critical
	include embox.kernel.irq_static
	include embox.mem.pool_adapter

	include embox.mem.heap_bm
	@Runlevel(1) include embox.mem.static_heap(heap_size=0x2000)
	@Runlevel(1) include embox.mem.fixed_heap(heap_start=0x60100000, heap_size=0x300000)
	include embox.mem.bitmask(page_size=64)

	include embox.lib.libds
	include embox.framework.LibFramework

	include embox.framework.mod(
		use_mod_depends=false,
		use_mod_labels=false,
		use_mod_logger=false,
		use_mod_names=false,
		use_cmd_details=false
	)
	include embox.util.log(max_log_level="LOG_ERR")

	include embox.compat.libc.all
	include embox.compat.libc.stdio.asprintf
	include embox.compat.libc.math_openlibm
	include embox.compat.libc.stdio.print(support_floating=1)
	include embox.compat.posix.time.time
	include embox.compat.posix.pthread_key
	include embox.compat.posix.proc.atexit_stub
	include embox.compat.atomic.pseudo_atomic

	@Runlevel(2) include embox.fs.dvfs.core(inode_pool_size=16, dentry_pool_size=16, inode_pool_size=16)
	@Runlevel(2) include embox.fs.rootfs_dvfs
	include embox.fs.driver.initfs_dvfs
	include embox.fs.driver.devfs_dvfs	
	include embox.fs.driver.fat_dvfs(log_level="LOG_ERR")
	include embox.compat.posix.file_system_dvfs

	include embox.net.skbuff(amount_skb=10)
	include embox.net.skbuff_data(amount_skb_data=10)
	include embox.net.sock_noxattr
	include embox.net.tcp
	include embox.net.tcp_sock
	include embox.net.udp
	include embox.net.udp_sock

	include embox.init.system_start_service(log_level="LOG_INFO", tty_dev="ttyS0")

	include embox.cmd.sh.tish(builtin_commands="cd export exit logout")

	include embox.cmd.help
	include embox.cmd.service

	include embox.cmd.sys.export

	include embox.cmd.net.netmanager
	include embox.cmd.net.ifconfig
	include embox.cmd.net.route

	include embox.cmd.fs.cat
	include embox.cmd.fs.ls
	include embox.cmd.fs.dd
	include embox.cmd.fs.mount

	include embox.cmd.qspi_loader

	@Runlevel(2) include embox.lib.cxx.ConstructionSingleApp
	include embox.lib.cxx.DestructionStatic(table_size=256)

	include third_party.gcc.libstdcxx
	include third_party.gcc.libsupcxx

	include third_party.lib.libkissfft
	include third_party.lib.ruy.ruy_download
	include third_party.lib.ruy.libruy
	include third_party.lib.kissfft_download
	include third_party.lib.flatbuffers_download
	include third_party.lib.gemmlowp
	include third_party.lib.tflite_micro.tflite_micro_build_headers
	include third_party.lib.tflite_micro.libtflm

	/* To add new models, add them here */

	
	include project.tensorflow.hello_world.hello_world
	include project.tensorflow.micro_speech.micro_speech
	include project.tensorflow.linear_regression.linear_regression
	

}