Skip to content

Commit c65fe7c

Browse files
committed
mcu/stm32: Fix ADC dependencies
Package adc_stm32f4 was included for all STM32 devices when ADC_x was enabled. adc_stm32f4 will only build for STM32F4 devices so dependency is moved to appropriate package Signed-off-by: Jerzy Kasenberg <[email protected]>
1 parent 6fbb445 commit c65fe7c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

hw/mcu/stm/stm32_common/pkg.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,3 @@ pkg.deps.CRYPTO:
5555

5656
pkg.deps.HASH:
5757
- "@apache-mynewt-core/hw/drivers/hash/hash_stm32"
58-
59-
pkg.deps.ADC_0:
60-
- "@apache-mynewt-core/hw/drivers/adc/adc_stm32f4"
61-
pkg.deps.ADC_1:
62-
- "@apache-mynewt-core/hw/drivers/adc/adc_stm32f4"
63-
pkg.deps.ADC_2:
64-
- "@apache-mynewt-core/hw/drivers/adc/adc_stm32f4"

hw/mcu/stm/stm32f4xx/pkg.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@ pkg.deps:
4949
pkg.deps.'(SPI_0_MASTER || SPI_1_MASTER || SPI_2_MASTER || SPI_3_MASTER || SPI_4_MASTER || SPI_5_MASTER) && BUS_DRIVER_PRESENT':
5050
- "@apache-mynewt-core/hw/bus/drivers/spi_stm32"
5151

52+
pkg.deps.ADC_0:
53+
- "@apache-mynewt-core/hw/drivers/adc/adc_stm32f4"
54+
pkg.deps.ADC_1:
55+
- "@apache-mynewt-core/hw/drivers/adc/adc_stm32f4"
56+
pkg.deps.ADC_2:
57+
- "@apache-mynewt-core/hw/drivers/adc/adc_stm32f4"
58+
5259
repository.stm-cmsis_device_f4:
5360
type: github
5461
vers: v2.6.8-commit

0 commit comments

Comments
 (0)