blob: 6f08839fbde3e017bac2556a125bc458e9c89183 [file] [log] [blame]
# 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_NRF52:
description: 'Set to indicate that BSP has NRF52'
value: 1
BSP_RUUVITAG_REV_B_NUM:
description: >
Indicates exact RuuviTag hardware revision B number. This is used
to setup default settings for peripherals.
Supported values are 1-6 which corresponds to revisions B1-B6.
value: '6'
SOFT_PWM:
description: 'Enable soft PWM'
value: 0
UARTBB_0:
description: 'Enable bit-banger UART 0'
value: 0
BME280_ONB:
description: 'Enable RuuviTag onboard BME280 sensor'
value: 0
LIS2DH12_ONB:
description: 'Enable RuuviTag onboard LIS2DH12 sensor (rev. B3 and newer)'
value: 0
RUUVITAG_REV_B_SYSINIT_STAGE_BME280:
description: >
Sysinit stage for the Ruuvitag, Rev. B; initializes the BME280
sensor.
value: 400
RUUVITAG_REV_B_SYSINIT_STAGE_LIS2DH12:
description: >
Sysinit stage for the Ruuvitag, Rev. B; initializes the LIS2DH12
sensor.
value: 400
syscfg.vals:
# Enable nRF52832 MCU
MCU_TARGET: nRF52832
# Set default pins for peripherals
# Latest revisions have testpoints instead of dedicated UART pins,
# we can use them instead
UART_0_PIN_TX: 4
UART_0_PIN_RX: 5
SPI_0_MASTER_PIN_SCK: 29
SPI_0_MASTER_PIN_MOSI: 25
SPI_0_MASTER_PIN_MISO: 28
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
BOOT_SERIAL_DETECT_PIN: 13 # Button 1
syscfg.vals.'BSP_RUUVITAG_REV_B_NUM == 1':
# Revision B1 has dedicated pins for UART
UART_0_PIN_TX: 7
UART_0_PIN_RX: 8
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
syscfg.restrictions:
- "!BME280_ONB || SPI_0_MASTER"
- "!LIS2DH12_ONB || SPI_0_MASTER"
- "!LIS2DH12_ONB || BSP_RUUVITAG_REV_B_NUM >= 3"