# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The ASF licenses this file
# to you 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.
#

syscfg.defs:
    BSP_NRF52840:
        description: 'Set to indicate that BSP has NRF52840'
        value: 1
    SOFT_PWM:
        description: 'Enable soft PWM'
        value: 0

syscfg.vals:
    # Enable nRF52840 MCU and common startup code
    MCU_TARGET: nRF52840
    MCU_COMMON_STARTUP: 1
    # Disable access port, enable debugger
    MCU_ACCESS_PORT_PROTECTION: disable

    # Set default pins for peripherals
    UART_0_PIN_TX: 6
    UART_0_PIN_RX: 8
    UART_0_PIN_RTS: 5
    UART_0_PIN_CTS: 7
    SPI_0_MASTER_PIN_SCK: 47
    SPI_0_MASTER_PIN_MOSI: 45
    SPI_0_MASTER_PIN_MISO: 46
    SPI_0_SLAVE_PIN_SCK: 47
    SPI_0_SLAVE_PIN_MOSI: 45
    SPI_0_SLAVE_PIN_MISO: 46
    SPI_0_SLAVE_PIN_SS: 44
    I2C_0_PIN_SCL: 27
    I2C_0_PIN_SDA: 26

    CONFIG_FCB_FLASH_AREA: FLASH_AREA_NFFS
    REBOOT_LOG_FLASH_AREA: FLASH_AREA_REBOOT_LOG
    NFFS_FLASH_AREA: FLASH_AREA_NFFS
    COREDUMP_FLASH_AREA: FLASH_AREA_IMAGE_1
    MCU_DCDC_ENABLED: 1
    MCU_LFCLK_SOURCE: LFXO
    QSPI_FLASH_SECTOR_SIZE: 4096
    QSPI_FLASH_PAGE_SIZE: 256
    QSPI_FLASH_SECTOR_COUNT: 4096
    QSPI_PIN_CS: 17
    QSPI_PIN_SCK: 19
    QSPI_PIN_DIO0: 20
    QSPI_PIN_DIO1: 21
    QSPI_PIN_DIO2: 22
    QSPI_PIN_DIO3: 23

syscfg.vals.BLE_CONTROLLER:
    TIMER_0: 0
    TIMER_5: 1
    OS_CPUTIME_FREQ: 32768
    OS_CPUTIME_TIMER_NUM: 5
    BLE_LL_RFMGMT_ENABLE_TIME: 1500
