blob: a2a4531cb9e1771f5c990a2485ca86f1272558ff [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:
STM32_FLASH_SIZE_KB:
description: 'Total flash size in KB'
value: 256
LSM303DLHC_ONB:
description: 'Onboard lsm303dlhc sensor'
value: 0
STM32F3DISCOVERY_SYSINIT_STAGE:
description: >
Sysinit stage for the STM32F3-Discovery BSP
value: 400
syscfg.vals:
REBOOT_LOG_FLASH_AREA: FLASH_AREA_REBOOT_LOG
CONFIG_FCB_FLASH_AREA: FLASH_AREA_NFFS
CONFIG_FCB_NUM_AREAS: 16
NFFS_FLASH_AREA: FLASH_AREA_NFFS
COREDUMP_FLASH_AREA: FLASH_AREA_IMAGE_1
BOOT_SERIAL_DETECT_PIN: 0 # USER button
BOOT_SERIAL_DETECT_PIN_CFG: 'HAL_GPIO_PULL_NONE'
BOOT_SERIAL_DETECT_PIN_VAL: 1
STM32_CLOCK_HSI: 1
STM32_CLOCK_HSE: 1
STM32_CLOCK_HSE_BYPASS: 1
STM32_CLOCK_PLL_MUL: 'RCC_PLL_MUL9'
STM32_CLOCK_PREDIV: 'RCC_HSE_PREDIV_DIV1'
STM32_CLOCK_AHB_DIVIDER: 'RCC_SYSCLK_DIV1'
STM32_CLOCK_APB1_DIVIDER: 'RCC_HCLK_DIV2'
STM32_CLOCK_APB2_DIVIDER: 'RCC_HCLK_DIV1'
STM32_FLASH_LATENCY: 'FLASH_LATENCY_2'
STM32_FLASH_PREFETCH_ENABLE: 1
UART_0_PIN_TX: 'MCU_GPIO_PORTA(9)'
UART_0_PIN_RX: 'MCU_GPIO_PORTA(10)'
SPI_0_PIN_SS: 'MCU_GPIO_PORTA(4)'
SPI_0_PIN_SCK: 'MCU_GPIO_PORTA(5)'
SPI_0_PIN_MISO: 'MCU_GPIO_PORTA(6)'
SPI_0_PIN_MOSI: 'MCU_GPIO_PORTA(7)'
SPI_1_PIN_SS: 'MCU_GPIO_PORTB(12)'
SPI_1_PIN_SCK: 'MCU_GPIO_PORTB(13)'
SPI_1_PIN_MISO: 'MCU_GPIO_PORTB(14)'
SPI_1_PIN_MOSI: 'MCU_GPIO_PORTB(15)'
I2C_0_PIN_SCL: 'MCU_GPIO_PORTB(6)'
I2C_0_PIN_SDA: 'MCU_GPIO_PORTB(7)'
TIMER_0_TIM: 'TIM15'
TIMER_1_TIM: 'TIM16'
TIMER_2_TIM: 'TIM17'
syscfg.restrictions:
- "!LSM303DLHC_ONB || I2C_0"