blob: 371f7d69126d4e342d2a021040cddfc05618d429 [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.
#
# Package: hw/bsp/nrf52-thingy
syscfg.defs:
BSP_NRF52:
description: 'Set to indicate that BSP has NRF52'
value: 1
SOFT_PWM:
description: 'Enable soft PWM'
value: 0
UARTBB_0:
description: 'Enable bit-banger UART 0'
value: 0
UARTBB_0_PIN_TX:
description: 'TX pin for UARTBB0'
value: -1
UARTBB_0_PIN_RX:
description: 'RX pin for UARTBB0'
value: -1
LIS2DH12_ONB:
description: 'NRF52 Thingy onboard lis2dh12 sensor'
value: 0
syscfg.vals:
# Enable nRF52832 MCU
MCU_NRF52832: 1
# There are no pins assigned for UART so disable it
UART_0: 0
# Set default pins for peripherals
# I2C_0 is SCL_EXT/SDA_EXT (LIS2DH12)
I2C_0_PIN_SCL: 15
I2C_0_PIN_SDA: 14
# I2C_1 is SCL/SDA (MPU-9250, LPS22HB, HTS221, BH1745NUC, CCS811)
I2C_1_PIN_SCL: 7
I2C_1_PIN_SDA: 8
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
XTAL_32768: 1
BOOT_SERIAL_DETECT_PIN: 11 # Button 1
syscfg.vals.BLE_LP_CLOCK:
TIMER_0: 0
TIMER_5: 1
OS_CPUTIME_FREQ: 32768
OS_CPUTIME_TIMER_NUM: 5
BLE_XTAL_SETTLE_TIME: 1500
syscfg.restrictions:
- "!UARTBB_0 || (UARTBB_0_PIN_TX >= 0 && UARTBB_0_PIN_RX >= 0)"
- "!LIS2DH12_ONB || I2C_0"