2020-07-15 17:00:34 +02:00
|
|
|
# Copyright (c) 2020 Inria
|
|
|
|
#
|
|
|
|
# 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 BOARD
|
|
|
|
default "pyboard" if BOARD_PYBOARD
|
|
|
|
|
|
|
|
config BOARD_PYBOARD
|
|
|
|
bool
|
|
|
|
default y
|
|
|
|
select CPU_MODEL_STM32F405RG
|
|
|
|
|
|
|
|
# Put defined MCU peripherals here (in alphabetical order)
|
|
|
|
select HAS_PERIPH_DMA
|
|
|
|
select HAS_PERIPH_I2C
|
|
|
|
select HAS_PERIPH_RTC
|
|
|
|
select HAS_PERIPH_SPI
|
|
|
|
select HAS_PERIPH_TIMER
|
|
|
|
select HAS_PERIPH_UART
|
|
|
|
select HAS_PERIPH_USBDEV
|
2020-09-06 21:59:51 +02:00
|
|
|
|
2022-09-14 09:29:48 +02:00
|
|
|
# Put other features for this board (in alphabetical order)
|
|
|
|
select HAS_TINYUSB_DEVICE
|
|
|
|
|
2020-09-06 21:59:51 +02:00
|
|
|
# Clock configuration
|
|
|
|
select BOARD_HAS_HSE
|
|
|
|
select BOARD_HAS_LSE
|
|
|
|
|
2021-12-14 16:23:59 +01:00
|
|
|
select HAVE_SAUL_GPIO
|
|
|
|
|
2022-10-26 11:57:02 +02:00
|
|
|
config CLOCK_HSE
|
|
|
|
default 12000000
|
2022-10-26 11:43:40 +02:00
|
|
|
|
2022-02-03 11:16:51 +01:00
|
|
|
config CLOCK_PLL_M
|
|
|
|
default 12
|
|
|
|
|
|
|
|
config CLOCK_PLL_N
|
2022-10-10 12:35:29 +02:00
|
|
|
default 336 if MODULE_PERIPH_USBDEV_CLK && TEST_KCONFIG
|
2022-02-03 11:16:51 +01:00
|
|
|
default 360
|
|
|
|
|
|
|
|
|
2020-09-06 21:59:51 +02:00
|
|
|
source "$(RIOTBOARD)/common/stm32/Kconfig"
|