2019-04-19 04:57:58 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2019 Antony Pavlov <antonynpavlov@gmail.com>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
|
|
|
#include <st/f0/stm32f030X4.dtsi>
|
2020-10-06 20:16:50 +08:00
|
|
|
#include <st/f0/stm32f030f4px-pinctrl.dtsi>
|
2019-04-19 04:57:58 +08:00
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "STM32F030 DEMO board";
|
2020-09-25 20:57:24 +08:00
|
|
|
compatible = "st,stm32f030-demo";
|
2019-04-19 04:57:58 +08:00
|
|
|
|
|
|
|
chosen {
|
|
|
|
zephyr,console = &usart1;
|
|
|
|
zephyr,shell-uart = &usart1;
|
|
|
|
zephyr,sram = &sram0;
|
|
|
|
zephyr,flash = &flash0;
|
|
|
|
};
|
|
|
|
|
|
|
|
leds {
|
|
|
|
compatible = "gpio-leds";
|
|
|
|
led: led {
|
2020-01-26 23:58:46 +08:00
|
|
|
gpios = <&gpioa 4 GPIO_ACTIVE_HIGH>;
|
2019-04-19 04:57:58 +08:00
|
|
|
label = "User LED";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
aliases {
|
|
|
|
led0 = &led;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-04-01 17:47:04 +08:00
|
|
|
/* Due to limited available memory, don't enable gpioc,d,e,f */
|
|
|
|
&gpioc {status = "disabled";};
|
|
|
|
&gpiod {status = "disabled";};
|
|
|
|
&gpiof {status = "disabled";};
|
|
|
|
|
2019-04-19 04:57:58 +08:00
|
|
|
&usart1 {
|
2020-10-06 20:16:50 +08:00
|
|
|
pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>;
|
2019-04-19 04:57:58 +08:00
|
|
|
current-speed = <115200>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&iwdg {
|
|
|
|
status = "okay";
|
|
|
|
};
|