blob: f924f826d7249c6a1963027bb24070481089f97f [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.
#
# Settings this BSP defines.
syscfg.defs:
BSP_NRF52:
description: 'Set to indicate that BSP has NRF52'
value: 1
BSP_BATTERY:
description: 'Setup battery driver in the BSP'
value: 1
BSP_CHARGER:
description: 'Setup charger driver in the BSP'
value: 1
syscfg.defs.BUS_DRIVER_PRESENT:
BSP_FLASH_SPI_NAME:
description: 'SPIFLASH device name'
value: '"spiflash0"'
BSP_FLASH_SPI_BUS:
description: 'bus name SPIFLASH is connected to'
value: '"spi0"'
syscfg.vals.BOOT_LOADER:
BSP_BATTERY: 0
BSP_CHARGER: 0
# Settings this BSP overrides.
syscfg.vals:
# Enable nRF52832 MCU and common startup code
MCU_TARGET: nRF52832
MCU_COMMON_STARTUP: 1
MCU_RAM_START: 0x20000000
MCU_RAM_SIZE: 0x10000
# 32.768 kHz crystal oscillator
MCU_LFCLK_SOURCE: LFXO
# Enable DC/DC regulator
MCU_DCDC_ENABLED: 1
###########################################################################
# Default Pins for Peripherals
# SPI port 0 connected to ST7789 display
SPI_0_MASTER: 1
SPI_0_MASTER_PIN_SCK: 2 # P0.02: SPI-SCK, LCD_SCK
SPI_0_MASTER_PIN_MOSI: 3 # P0.03: SPI-MOSI, LCD_SDI
SPI_0_MASTER_PIN_MISO: 4 # P0.04: SPI-MISO
# I2C port 1 connected to CST816S touch controller, BMA421 accelerometer, HRS3300 heart rate sensor
I2C_1: 1
I2C_1_FREQ_KHZ: 400 # BMA421=1000 HRS3300=800 CST816S=400
I2C_1_PIN_SCL: 7 # P0.07: BMA421-SCL, HRS3300-SCL, TP-SCLOUT
I2C_1_PIN_SDA: 6 # P0.06: BMA421-SDA, HRS3300-SDA, TP-SDAI/O
# UART port 0 is disabled
UART_0: 0
CONSOLE_UART: 0
# Enable ARM semihosting console
CONSOLE_SEMIHOSTING: 1
# Configure NFC pins as GPIO P0.09, P0.10
NFC_PINS_AS_GPIO: 1
# Define flash areas
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
# SPI Flash
SPIFLASH: 1
SPIFLASH_SPI_NUM: 0
SPIFLASH_SPI_CS_PIN: 5 # P0.05 SPI-CE#(SPI-NOR)
SPIFLASH_BAUDRATE: 8000
SPIFLASH_MANUFACTURER: 0x0B
SPIFLASH_MEMORY_TYPE: 0x40
SPIFLASH_MEMORY_CAPACITY: 0x16
SPIFLASH_SECTOR_COUNT: 1024
SPIFLASH_SECTOR_SIZE: 4096
SPIFLASH_PAGE_SIZE: 256
SPIFLASH_TBP1_TYPICAL: 20 # Byte program time (first byte) (us)
SPIFLASH_TBP1_MAXIMUM: 50 # Maximum byte program time (first byte) (us)
SPIFLASH_TPP_TYPICAL: 700 # Page program time (us)
SPIFLASH_TPP_MAXIMUM: 3000 # Maximum page program time (us)
SPIFLASH_TSE_TYPICAL: 30000 # Sector erase time (4KB) (us)
SPIFLASH_TSE_MAXIMUM: 400000 # Maximum sector erase time (us)
SPIFLASH_TBE1_TYPICAL: 120000 # Block erase time (32KB) (us)
SPIFLASH_TBE1_MAXIMUM: 800000 # Maximum block erase time (32KB) (us)
SPIFLASH_TBE2_TYPICAL: 150000 # Block erase time (64KB) (us)
SPIFLASH_TBE2_MAXIMUM: 1000000 # Maximum block erase time (64KB) (us)
SPIFLASH_TCE_TYPICAL: 3000000 # Chip erase time (us)
SPIFLASH_TCE_MAXIMUM: 10000000 # Maximum chip erase time (us)
# The default PineTime bootloader will setup a 7 second watchdog
SANITY_INTERVAL: 5000
WATCHDOG_INTERVAL: 7000
syscfg.vals.BSP_BATTERY:
# ADC needed for battery voltage
ADC_0: 1
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