Skip to content

Commit e01c69b

Browse files
committed
[feat] 1.modified main function;
1 parent c2f3974 commit e01c69b

File tree

1 file changed

+2
-3
lines changed
  • bsp/mm32f526x/applications

1 file changed

+2
-3
lines changed

bsp/mm32f526x/applications/main.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,16 @@
88

99
#include <rtthread.h>
1010
#include <rtdevice.h>
11-
#include "hal_device.h"
1211

1312
/* defined the LED pin: PB15 */
1413
#define LED_PIN 31
1514

1615
int main(void)
1716
{
18-
int count = 1;
1917
/* set LED1 pin mode to output */
2018
rt_pin_mode(LED_PIN, PIN_MODE_OUTPUT);
2119

22-
while (count++) {
20+
while (1) {
2321
rt_pin_write(LED_PIN, PIN_HIGH);
2422
rt_thread_mdelay(500);
2523
rt_pin_write(LED_PIN, PIN_LOW);
@@ -28,3 +26,4 @@ int main(void)
2826

2927
return RT_EOK;
3028
}
29+

0 commit comments

Comments
 (0)