2021-05-19 17:41:00 +02:00
|
|
|
# Copyright (c) 2021 HAW Hamburg
|
|
|
|
#
|
|
|
|
# This file is subject to the terms and conditions of the GNU Lesser
|
|
|
|
# General Public License v2.1. See the file LICENSE in the top level
|
|
|
|
# directory for more details.
|
|
|
|
#
|
|
|
|
|
|
|
|
config MODULE_PERIPH
|
|
|
|
bool
|
|
|
|
default y
|
2021-10-24 21:19:03 +02:00
|
|
|
select MODULE_ZTIMER if MODULE_PERIPH_USBDEV
|
|
|
|
select MODULE_ZTIMER_MSEC if MODULE_PERIPH_USBDEV
|
2022-10-14 03:53:17 +02:00
|
|
|
# All STM32 families except for STM32F1, STM32F3 and STM32WG use
|
|
|
|
# MODULE_USBDEV_SYNOPSYS_DWC2
|
|
|
|
select MODULE_USBDEV_SYNOPSYS_DWC2 if MODULE_PERIPH_USBDEV && !HAS_CPU_STM32WB && !HAS_CPU_STM32F3 && !HAS_CPU_STM32F1
|
2022-10-14 12:25:57 +02:00
|
|
|
# In STM32F1 family STM32F105xx also uses MODULE_USBDEV_SYNOPSYS_DWC2.
|
|
|
|
select MODULE_USBDEV_SYNOPSYS_DWC2 if MODULE_PERIPH_USBDEV && CPU_MODEL_STM32F105R8
|
|
|
|
select MODULE_USBDEV_SYNOPSYS_DWC2 if MODULE_PERIPH_USBDEV && CPU_MODEL_STM32F105RB
|
|
|
|
select MODULE_USBDEV_SYNOPSYS_DWC2 if MODULE_PERIPH_USBDEV && CPU_MODEL_STM32F105RC
|
|
|
|
select MODULE_USBDEV_SYNOPSYS_DWC2 if MODULE_PERIPH_USBDEV && CPU_MODEL_STM32F105V8
|
|
|
|
select MODULE_USBDEV_SYNOPSYS_DWC2 if MODULE_PERIPH_USBDEV && CPU_MODEL_STM32F105VB
|
|
|
|
select MODULE_USBDEV_SYNOPSYS_DWC2 if MODULE_PERIPH_USBDEV && CPU_MODEL_STM32F105VC
|
|
|
|
# In STM32F1 family STM32F107xx also uses MODULE_USBDEV_SYNOPSYS_DWC2.
|
|
|
|
select MODULE_USBDEV_SYNOPSYS_DWC2 if MODULE_PERIPH_USBDEV && CPU_MODEL_STM32F107RB
|
|
|
|
select MODULE_USBDEV_SYNOPSYS_DWC2 if MODULE_PERIPH_USBDEV && CPU_MODEL_STM32F107RC
|
|
|
|
select MODULE_USBDEV_SYNOPSYS_DWC2 if MODULE_PERIPH_USBDEV && CPU_MODEL_STM32F107VB
|
|
|
|
select MODULE_USBDEV_SYNOPSYS_DWC2 if MODULE_PERIPH_USBDEV && CPU_MODEL_STM32F107VC
|
2021-05-19 17:41:00 +02:00
|
|
|
help
|
|
|
|
stm32 common peripheral code.
|
|
|
|
|
|
|
|
config MODULE_PERIPH_UART_NONBLOCKING
|
|
|
|
depends on HAS_PERIPH_UART_NONBLOCKING
|
|
|
|
depends on MODULE_PERIPH_UART
|
|
|
|
select MODULE_TSRB
|
|
|
|
|
|
|
|
config MODULE_PERIPH_CAN
|
|
|
|
bool
|
|
|
|
depends on HAS_PERIPH_CAN
|
|
|
|
depends on HAS_PERIPH_GPIO
|
|
|
|
depends on HAS_PERIPH_GPIO_IRQ
|
|
|
|
select MODULE_PERIPH_GPIO_IRQ
|
|
|
|
select MODULE_PERIPH_I2C
|
|
|
|
help
|
|
|
|
STM32 CAN peripheral controller.
|
2021-11-11 14:27:26 +01:00
|
|
|
|
|
|
|
config MODULE_PERIPH_ADC
|
|
|
|
bool "ADC peripheral driver"
|
|
|
|
depends on HAS_PERIPH_ADC
|
2021-12-02 12:26:13 +01:00
|
|
|
select MODULE_ZTIMER if HAS_CPU_STM32F3 || HAS_CPU_STM32L4 || HAS_CPU_STM32WL
|
|
|
|
select MODULE_ZTIMER_MSEC if HAS_CPU_STM32F3 || HAS_CPU_STM32L4 || HAS_CPU_STM32WL
|
2021-11-11 14:27:26 +01:00
|
|
|
select MODULE_PERIPH_COMMON
|
2021-12-21 16:27:46 +01:00
|
|
|
|
|
|
|
config MODULE_PERIPH_LTDC
|
|
|
|
bool "LTDC peripheral driver"
|
|
|
|
depends on HAS_PERIPH_LTDC
|
|
|
|
help
|
|
|
|
STM32 LCD-TFT Display controller
|