Skip to content

[bsp]stm32f429-armfly-v6 添加yml配置 #10459

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 7, 2025
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# scons.args: &scons
# scons_arg:
# - '--strict'

# ------ nano ------
nano:
kconfig:
- CONFIG_RT_USING_NANO=y

19 changes: 19 additions & 0 deletions bsp/stm32/stm32f429-armfly-v6/.config
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,7 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
# CONFIG_PKG_USING_QMODBUS is not set
# CONFIG_PKG_USING_PNET is not set
# CONFIG_PKG_USING_OPENER is not set
# CONFIG_PKG_USING_FREEMQTT is not set
# end of IoT - internet of things

#
Expand Down Expand Up @@ -726,6 +727,7 @@ CONFIG_PKG_CMSIS_CORE_VER="latest"
# CONFIG_PKG_USING_RMP is not set
# CONFIG_PKG_USING_R_RHEALSTONE is not set
# CONFIG_PKG_USING_HEARTBEAT is not set
# CONFIG_PKG_USING_MICRO_ROS_RTTHREAD_PACKAGE is not set
# end of system packages

#
Expand Down Expand Up @@ -855,6 +857,8 @@ CONFIG_PKG_STM32F4_CMSIS_DRIVER_VER="latest"
#
# HC32 DDL Drivers
#
# CONFIG_PKG_USING_HC32F4_CMSIS_DRIVER is not set
# CONFIG_PKG_USING_HC32F4_SERIES_DRIVER is not set
# end of HC32 DDL Drivers

#
Expand All @@ -868,6 +872,21 @@ CONFIG_PKG_STM32F4_CMSIS_DRIVER_VER="latest"
# CONFIG_PKG_USING_NXP_IMX6UL_DRIVER is not set
# CONFIG_PKG_USING_NXP_IMXRT_DRIVER is not set
# end of NXP HAL & SDK Drivers

#
# NUVOTON Drivers
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.config修改不用提交

#
# CONFIG_PKG_USING_NUVOTON_CMSIS_DRIVER is not set
# CONFIG_PKG_USING_NUVOTON_SERIES_DRIVER is not set
# CONFIG_PKG_USING_NUVOTON_ARM926_LIB is not set
# end of NUVOTON Drivers

#
# GD32 Drivers
#
# CONFIG_PKG_USING_GD32_ARM_CMSIS_DRIVER is not set
# CONFIG_PKG_USING_GD32_ARM_SERIES_DRIVER is not set
# end of GD32 Drivers
# end of HAL & SDK Drivers

#
Expand Down
14 changes: 14 additions & 0 deletions bsp/stm32/stm32f429-armfly-v6/applications/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,15 @@
*/

#include <rtthread.h>
#ifndef RT_USING_NANO
#include <rtdevice.h>
#endif
#include <board.h>
#include <drv_ext_io.h>

int main(void)
{
#ifndef RT_USING_NANO
HC574_SetPin(LED1,0);
HC574_SetPin(LED2,0);
HC574_SetPin(LED3,0);
Expand All @@ -27,4 +30,15 @@ int main(void)
HC574_SetPin(LED1,0);
rt_thread_mdelay(500);
}
#else
#define LED_PB_8 GET_PIN(B, 8)
rt_pin_mode(LED_PB_8, PIN_MODE_OUTPUT);
while (1)
{
rt_pin_write(LED_PB_8, PIN_HIGH);
rt_thread_mdelay(500);
rt_pin_write(LED_PB_8, PIN_LOW);
rt_thread_mdelay(500);
}
#endif
}