# This file is part of the MicroPython project, http://micropython.org/
#
# The MIT License (MIT)
#
# Copyright 2020 NXP
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

menu "MicroPython Options"

config MICROPY_CONFIGFILE
	string "Configuration file"
	default "mpconfigport_minimal.h"

config MICROPY_HEAP_SIZE
	int "Heap size"
	default 49152

config MICROPY_VFS_FAT
	bool "FatFS file system"
	depends on !FAT_FILESYSTEM_ELM

config MICROPY_VFS_LFS1
	bool "LittleFs version 1 file system"

config MICROPY_VFS_LFS2
	bool "LittleFs version 2 file system"

config MICROPY_FROZEN_MODULES
	bool "Enable Frozen Modules"
	default y if FLASH_MAP || DISK_ACCESS

config MICROPY_FROZEN_MANIFEST
	string "Path to Frozen Modules manifest.py"
	depends on MICROPY_FROZEN_MODULES
	default "boards/manifest.py"

config MICROPY_USB_DEVICE_VID
	hex "USB VID"
	default 0x2fe3

config MICROPY_USB_DEVICE_PID
	hex "USB PID"
	default 0x0001

choice MICROPY_CONFIG_ROM_LEVEL
	prompt  "MicroPython Features level"
	default MICROPY_CONFIG_ROM_LEVEL_BASIC_FEATURES

	config MICROPY_CONFIG_ROM_LEVEL_MINIMUM
		bool "Disable all optional features"

	config MICROPY_CONFIG_ROM_LEVEL_CORE_FEATURES
		bool "Only enable core features"

	config MICROPY_CONFIG_ROM_LEVEL_BASIC_FEATURES
		bool "Enable most common features"

	config MICROPY_CONFIG_ROM_LEVEL_EXTRA_FEATURES
		bool "Enable convenience features"

	config MICROPY_CONFIG_ROM_LEVEL_FULL_FEATURES
		bool "Enable all common features"

	config MICROPY_CONFIG_ROM_LEVEL_EVERYTHING
		bool "Enable everything"

endchoice

endmenu # MicroPython Options

source "Kconfig.zephyr"
