#
# This file is part of AtomVM.
#
# Copyright 2022 Davide Bettio <davide@uninstall.it>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
#

menu "AtomVM Built-In Components"

config AVM_ENABLE_GPIO_NIFS
    bool "Enable GPIO NIFs"
    default y

config AVM_ENABLE_LEDC_NIFS
    bool "Enable LEDC NIFs"
    default y

config AVM_ENABLE_NVS_NIFS
    bool "Enable NVS NIFs"
    default y

config AVM_ENABLE_RTC_SLOW_NIFS
    bool "Enable RTC SLOW NIFs"
    default y

config AVM_RTC_SLOW_MAX_SIZE
    int "RTC SLOW maximum binary size"
    # By default, use the maximum size for esp-idf < 4.4
    # In newer version, available size is 8170
    default 4086

config AVM_ENABLE_GPIO_PORT_DRIVER
    bool "Enable GPIO port driver"
    default y

config AVM_ENABLE_I2C_PORT_DRIVER
    bool "Enable I2C port driver"
    default y

config AVM_ENABLE_NETWORK_PORT_DRIVER
    bool "Enable network port driver"
    default y

config AVM_ENABLE_SOCKET_PORT_DRIVER
    bool "Enable socket port driver"
    default y

config AVM_ENABLE_SPI_PORT_DRIVER
    bool "Enable SPI port driver"
    default y

config AVM_ENABLE_UART_PORT_DRIVER
    bool "Enable UART port driver"
    default y

config AVM_ENABLE_OTP_CRYPTO_NIFS
    bool "Enable OTP Crypto NIFs"
    default y

config AVM_ENABLE_OTP_SOCKET_NIFS
    bool "Enable OTP Socket NIFs"
    default y

config AVM_ENABLE_OTP_NET_NIFS
    bool "Enable OTP Net NIFs"
    default y

config AVM_ENABLE_OTP_SSL_NIFS
    bool "Enable OTP SSL NIFs"
    default y

endmenu
