We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e9d16a commit afd9e4cCopy full SHA for afd9e4c
bsp/stm32/stm32f429-armfly-v6/applications/main.c
@@ -9,12 +9,15 @@
9
*/
10
11
#include <rtthread.h>
12
+#ifndef RT_USING_NANO
13
#include <rtdevice.h>
14
+#endif
15
#include <board.h>
16
#include <drv_ext_io.h>
17
18
int main(void)
19
{
20
21
HC574_SetPin(LED1,0);
22
HC574_SetPin(LED2,0);
23
HC574_SetPin(LED3,0);
@@ -27,4 +30,15 @@ int main(void)
27
30
28
31
rt_thread_mdelay(500);
29
32
}
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
42
+ }
43
44
0 commit comments