mirror of https://github.com/RT-Thread/rt-thread
[bsp]stm32f429-armfly-v6 添加yml配置 (#10459)
This commit is contained in:
parent
d698bb487e
commit
207915ab24
|
@ -0,0 +1,9 @@
|
||||||
|
# scons.args: &scons
|
||||||
|
# scons_arg:
|
||||||
|
# - '--strict'
|
||||||
|
|
||||||
|
# ------ nano ------
|
||||||
|
nano:
|
||||||
|
kconfig:
|
||||||
|
- CONFIG_RT_USING_NANO=y
|
||||||
|
|
|
@ -9,12 +9,15 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <rtthread.h>
|
#include <rtthread.h>
|
||||||
|
#ifndef RT_USING_NANO
|
||||||
#include <rtdevice.h>
|
#include <rtdevice.h>
|
||||||
|
#endif
|
||||||
#include <board.h>
|
#include <board.h>
|
||||||
#include <drv_ext_io.h>
|
#include <drv_ext_io.h>
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
|
#ifndef RT_USING_NANO
|
||||||
HC574_SetPin(LED1,0);
|
HC574_SetPin(LED1,0);
|
||||||
HC574_SetPin(LED2,0);
|
HC574_SetPin(LED2,0);
|
||||||
HC574_SetPin(LED3,0);
|
HC574_SetPin(LED3,0);
|
||||||
|
@ -27,4 +30,15 @@ int main(void)
|
||||||
HC574_SetPin(LED1,0);
|
HC574_SetPin(LED1,0);
|
||||||
rt_thread_mdelay(500);
|
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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue