#
# 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.
#

pkg.name: hw/mcu/stm/stm32f4xx
pkg.description: MCU definition for STM32F4 ARM Cortex-M4 chips.
pkg.author: "Apache Mynewt <dev@mynewt.apache.org>"
pkg.homepage: "http://mynewt.apache.org/"
pkg.keywords:
    - stm32
    - stm32f4

pkg.type: sdk

pkg.ign_files:
    - ".*template.*"

pkg.include_dirs:
    - "@stm-cmsis_device_f4/Include"
    - "@stm-stm32f4xx_hal_driver/Inc"

pkg.src_dirs:
    - "@stm-stm32f4xx_hal_driver/Src"
    - "src"

pkg.ign_dirs:
    - "Device"

pkg.deps:
    - "@apache-mynewt-core/hw/hal"
    - "@apache-mynewt-core/hw/mcu/stm/stm32_common"
    - "@apache-mynewt-core/hw/cmsis-core"

pkg.deps.'(SPI_0_MASTER || SPI_1_MASTER || SPI_2_MASTER || SPI_3_MASTER || SPI_4_MASTER || SPI_5_MASTER) && BUS_DRIVER_PRESENT':
    - "@apache-mynewt-core/hw/bus/drivers/spi_stm32"

pkg.deps.ADC_0:
    - "@apache-mynewt-core/hw/drivers/adc/adc_stm32f4"
pkg.deps.ADC_1:
    - "@apache-mynewt-core/hw/drivers/adc/adc_stm32f4"
pkg.deps.ADC_2:
    - "@apache-mynewt-core/hw/drivers/adc/adc_stm32f4"

repository.stm-cmsis_device_f4:
    type: github
    vers: v2.6.8-commit
    branch: master
    user: STMicroelectronics
    repo: cmsis_device_f4

repository.stm-stm32f4xx_hal_driver:
    type: github
    vers: v1.7.13-commit
    branch: master
    user: STMicroelectronics
    repo: stm32f4xx_hal_driver
