File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed
bsp/stm32/stm32f429-armfly-v6 Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change 1+ # scons.args: &scons
2+ # scons_arg:
3+ # - '--strict'
4+
5+ # ------ nano ------
6+ nano :
7+ kconfig :
8+ - CONFIG_RT_USING_NANO=y
9+
Original file line number Diff line number Diff line change 99 */
1010
1111#include <rtthread.h>
12+ #ifndef RT_USING_NANO
1213#include <rtdevice.h>
14+ #endif
1315#include <board.h>
1416#include <drv_ext_io.h>
1517
1618int main (void )
1719{
20+ #ifndef RT_USING_NANO
1821 HC574_SetPin (LED1 ,0 );
1922 HC574_SetPin (LED2 ,0 );
2023 HC574_SetPin (LED3 ,0 );
@@ -27,4 +30,15 @@ int main(void)
2730 HC574_SetPin (LED1 ,0 );
2831 rt_thread_mdelay (500 );
2932 }
33+ #else
34+ #define LED_PB_8 GET_PIN(B, 8)
35+ rt_pin_mode (LED_PB_8 , PIN_MODE_OUTPUT );
36+ while (1 )
37+ {
38+ rt_pin_write (LED_PB_8 , PIN_HIGH );
39+ rt_thread_mdelay (500 );
40+ rt_pin_write (LED_PB_8 , PIN_LOW );
41+ rt_thread_mdelay (500 );
42+ }
43+ #endif
3044}
You can’t perform that action at this time.
0 commit comments