Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
board: stm32_min_dev: Add support for blue/black variant
Add support for blue pill and black pill variants of the STM32 minimum development board by splitting board configuration into stm32_min_dev_blue and stm32_min_dev_black. CODEOWNERS: Add myself (@cbsiddharth) as codeowner for stm32_min_dev Signed-off-by: Siddharth Chandrasekaran <siddharth@embedjournal.com>
- Loading branch information
Showing
10 changed files
with
113 additions
and
15 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
* Copyright (c) 2019, embedjournal.com | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/dts-v1/; | ||
#include "stm32_min_dev.dtsi" | ||
|
||
/ { | ||
model = "STM32 Minimum Development Board (Black)"; | ||
compatible = "st,stm32_min_dev_black", "st,stm32f103c8"; | ||
|
||
leds { | ||
led: led { | ||
gpios = <&gpiob 12 GPIO_INT_ACTIVE_HIGH>; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
identifier: stm32_min_dev_black | ||
name: STM32 Minimum Development Board (Black) | ||
type: mcu | ||
arch: arm | ||
toolchain: | ||
- zephyr | ||
- gnuarmemb | ||
- xtools | ||
ram: 20 | ||
supported: | ||
- i2c | ||
- pwm | ||
- spi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Kconfig - STM32 Minimum Development Board Configuration | ||
# | ||
# Copyright (c) 2019, embedjournal.com | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
CONFIG_ARM=y | ||
CONFIG_BOARD_STM32_MIN_DEV_BLACK=y | ||
CONFIG_SOC_SERIES_STM32F1X=y | ||
CONFIG_SOC_STM32F103X8=y | ||
CONFIG_CORTEX_M_SYSTICK=y | ||
|
||
# 72MHz system clock | ||
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=72000000 | ||
|
||
# enable uart driver | ||
CONFIG_SERIAL=y | ||
|
||
# enable console | ||
CONFIG_CONSOLE=y | ||
CONFIG_UART_CONSOLE=y | ||
|
||
# enable pinmux | ||
CONFIG_PINMUX=y | ||
|
||
# enable GPIO | ||
CONFIG_GPIO=y | ||
|
||
# clock configuration | ||
CONFIG_CLOCK_CONTROL=y | ||
CONFIG_CLOCK_STM32_HSE_CLOCK=8000000 | ||
CONFIG_CLOCK_STM32_SYSCLK_SRC_PLL=y | ||
|
||
# use HSE as PLL input | ||
CONFIG_CLOCK_STM32_PLL_SRC_HSE=y | ||
# produce 72MHz clock at PLL output | ||
CONFIG_CLOCK_STM32_PLL_XTPRE=n | ||
CONFIG_CLOCK_STM32_PLL_MULTIPLIER=9 | ||
CONFIG_CLOCK_STM32_AHB_PRESCALER=1 | ||
|
||
# APB1 clock must not exceed 36MHz limit | ||
CONFIG_CLOCK_STM32_APB1_PRESCALER=2 | ||
CONFIG_CLOCK_STM32_APB2_PRESCALER=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
* Copyright (c) 2017, embedjournal.com | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/dts-v1/; | ||
#include "stm32_min_dev.dtsi" | ||
|
||
/ { | ||
model = "STM32 Minimum Development Board (Blue)"; | ||
compatible = "st,stm32_min_dev_blue", "st,stm32f103c8"; | ||
|
||
leds { | ||
led: led { | ||
gpios = <&gpioc 13 GPIO_INT_ACTIVE_HIGH>; | ||
}; | ||
}; | ||
}; |
4 changes: 2 additions & 2 deletions
4
boards/arm/stm32_min_dev/stm32_min_dev.yaml → ...arm/stm32_min_dev/stm32_min_dev_blue.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...arm/stm32_min_dev/stm32_min_dev_defconfig → ...tm32_min_dev/stm32_min_dev_blue_defconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters