diff options
| author | qianjiuyuan <[email protected]> | 2025-07-07 11:11:23 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-07 11:11:23 +0800 |
| commit | 207915ab248f3632cf7145b77281c82ea72d13ab (patch) | |
| tree | b029c80049fe4ca02b10b4995551004fced9d99c | |
| parent | d698bb487eaf4b08e0e70a46a12871ebed55eb14 (diff) | |
[bsp]stm32f429-armfly-v6 添加yml配置 (#10459)
| -rw-r--r-- | bsp/stm32/stm32f429-armfly-v6/.ci/attachconfig/ci.attachconfig.yml | 9 | ||||
| -rw-r--r-- | bsp/stm32/stm32f429-armfly-v6/applications/main.c | 14 |
2 files changed, 23 insertions, 0 deletions
diff --git a/bsp/stm32/stm32f429-armfly-v6/.ci/attachconfig/ci.attachconfig.yml b/bsp/stm32/stm32f429-armfly-v6/.ci/attachconfig/ci.attachconfig.yml new file mode 100644 index 0000000000..93697a0991 --- /dev/null +++ b/bsp/stm32/stm32f429-armfly-v6/.ci/attachconfig/ci.attachconfig.yml @@ -0,0 +1,9 @@ +# scons.args: &scons +# scons_arg: +# - '--strict' + +# ------ nano ------ +nano: + kconfig: + - CONFIG_RT_USING_NANO=y + diff --git a/bsp/stm32/stm32f429-armfly-v6/applications/main.c b/bsp/stm32/stm32f429-armfly-v6/applications/main.c index 152a11bab1..e773a6ea31 100644 --- a/bsp/stm32/stm32f429-armfly-v6/applications/main.c +++ b/bsp/stm32/stm32f429-armfly-v6/applications/main.c @@ -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); @@ -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 } |
