Browse Source

[stm32] remove 'count' variable in main()

Meco Man 4 years ago
parent
commit
390c635267
61 changed files with 71 additions and 136 deletions
  1. 1 2
      bsp/stm32/stm32f072-st-nucleo/applications/main.c
  2. 1 3
      bsp/stm32/stm32f091-st-nucleo/applications/main.c
  3. 1 2
      bsp/stm32/stm32f103-atk-nano/applications/main.c
  4. 1 2
      bsp/stm32/stm32f103-atk-warshipv3/applications/main.c
  5. 1 2
      bsp/stm32/stm32f103-blue-pill/applications/main.c
  6. 1 2
      bsp/stm32/stm32f103-dofly-M3S/applications/main.c
  7. 1 2
      bsp/stm32/stm32f103-dofly-lyc8/applications/main.c
  8. 1 2
      bsp/stm32/stm32f103-fire-arbitrary/applications/main.c
  9. 1 2
      bsp/stm32/stm32f103-gizwits-gokitv21/applications/main.c
  10. 1 2
      bsp/stm32/stm32f103-hw100k-ibox/applications/main.c
  11. 1 2
      bsp/stm32/stm32f103-onenet-nbiot/applications/main.c
  12. 1 2
      bsp/stm32/stm32f103-yf-ufun/applications/main.c
  13. 1 2
      bsp/stm32/stm32f107-uc-eval/applications/main.c
  14. 1 2
      bsp/stm32/stm32f401-st-nucleo/applications/main.c
  15. 1 2
      bsp/stm32/stm32f405-smdz-breadfruit/applications/main.c
  16. 1 2
      bsp/stm32/stm32f407-atk-explorer/applications/main.c
  17. 1 2
      bsp/stm32/stm32f407-st-discovery/applications/main.c
  18. 1 2
      bsp/stm32/stm32f410-st-nucleo/applications/main.c
  19. 1 2
      bsp/stm32/stm32f411-atk-nano/applications/main.c
  20. 1 2
      bsp/stm32/stm32f411-st-nucleo/applications/main.c
  21. 1 2
      bsp/stm32/stm32f411-weact-MiniF4/applications/main.c
  22. 1 2
      bsp/stm32/stm32f412-st-nucleo/applications/main.c
  23. 1 2
      bsp/stm32/stm32f413-st-nucleo/applications/main.c
  24. 1 2
      bsp/stm32/stm32f427-robomaster-a/applications/main.c
  25. 1 3
      bsp/stm32/stm32f429-armfly-v6/applications/main.c
  26. 1 2
      bsp/stm32/stm32f429-atk-apollo/applications/main.c
  27. 1 2
      bsp/stm32/stm32f429-fire-challenger/applications/main.c
  28. 1 2
      bsp/stm32/stm32f429-st-disco/applications/main.c
  29. 1 2
      bsp/stm32/stm32f446-st-nucleo/applications/main.c
  30. 1 2
      bsp/stm32/stm32f469-st-disco/applications/main.c
  31. 1 2
      bsp/stm32/stm32f746-st-disco/applications/main.c
  32. 1 2
      bsp/stm32/stm32f767-atk-apollo/applications/main.c
  33. 1 2
      bsp/stm32/stm32f767-fire-challenger/applications/main.c
  34. 1 2
      bsp/stm32/stm32f767-st-nucleo/applications/main.c
  35. 1 2
      bsp/stm32/stm32f769-st-disco/applications/main.c
  36. 1 2
      bsp/stm32/stm32g070-st-nucleo/applications/main.c
  37. 1 2
      bsp/stm32/stm32g071-st-nucleo/applications/main.c
  38. 1 2
      bsp/stm32/stm32g431-st-nucleo/applications/main.c
  39. 1 2
      bsp/stm32/stm32h743-atk-apollo/applications/main.c
  40. 1 2
      bsp/stm32/stm32h743-st-nucleo/applications/main.c
  41. 1 2
      bsp/stm32/stm32h747-st-discovery/applications/main.c
  42. 1 2
      bsp/stm32/stm32h750-armfly-h7-tool/applications/main.c
  43. 1 2
      bsp/stm32/stm32h750-artpi-h750/applications/main.c
  44. 1 2
      bsp/stm32/stm32l010-st-nucleo/applications/main.c
  45. 1 2
      bsp/stm32/stm32l053-st-nucleo/applications/main.c
  46. 1 2
      bsp/stm32/stm32l412-st-nucleo/applications/main.c
  47. 11 13
      bsp/stm32/stm32l431-BearPi/applications/main.c
  48. 1 2
      bsp/stm32/stm32l432-st-nucleo/applications/main.c
  49. 1 2
      bsp/stm32/stm32l433-st-nucleo/applications/main.c
  50. 1 2
      bsp/stm32/stm32l452-st-nucleo/applications/main.c
  51. 1 2
      bsp/stm32/stm32l475-atk-pandora/applications/main.c
  52. 1 2
      bsp/stm32/stm32l475-st-discovery/applications/main.c
  53. 1 2
      bsp/stm32/stm32l476-st-nucleo/applications/main.c
  54. 1 2
      bsp/stm32/stm32l496-ali-developer/applications/main.c
  55. 1 2
      bsp/stm32/stm32l496-st-nucleo/applications/main.c
  56. 1 3
      bsp/stm32/stm32l4r5-st-nucleo/applications/main.c
  57. 1 2
      bsp/stm32/stm32l4r9-st-eval/applications/main.c
  58. 1 2
      bsp/stm32/stm32mp157a-st-discovery/applications/main.c
  59. 1 2
      bsp/stm32/stm32mp157a-st-ev1/applications/main.c
  60. 1 2
      bsp/stm32/stm32wb55-st-nucleo/applications/main.c
  61. 1 2
      bsp/stm32/stm32wl55-st-nucleo/applications/main.c

+ 1 - 2
bsp/stm32/stm32f072-st-nucleo/applications/main.c

@@ -17,11 +17,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED0 pin mode to output */
     rt_pin_mode(LED2_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED2_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 3
bsp/stm32/stm32f091-st-nucleo/applications/main.c

@@ -17,12 +17,10 @@
 
 int main(void)
 {
-    int count = 1;
-
     /* set LED2 pin mode to output */
     rt_pin_mode(LED2_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED2_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32f103-atk-nano/applications/main.c

@@ -17,11 +17,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED0 pin mode to output */
     rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED0_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32f103-atk-warshipv3/applications/main.c

@@ -19,13 +19,12 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED0 pin mode to output */
     rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
     /* set LED1 pin mode to output */
     rt_pin_mode(LED1_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED0_PIN, PIN_HIGH);
         rt_pin_write(LED1_PIN, PIN_HIGH);

+ 1 - 2
bsp/stm32/stm32f103-blue-pill/applications/main.c

@@ -17,11 +17,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED0 pin mode to output */
     rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED0_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32f103-dofly-M3S/applications/main.c

@@ -18,11 +18,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED0 pin mode to output */
     rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED0_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32f103-dofly-lyc8/applications/main.c

@@ -17,11 +17,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED0 pin mode to output */
     rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED0_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32f103-fire-arbitrary/applications/main.c

@@ -17,11 +17,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED0 pin mode to output */
     rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED0_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32f103-gizwits-gokitv21/applications/main.c

@@ -17,11 +17,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED0 pin mode to output */
     rt_pin_mode(LED4_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED4_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32f103-hw100k-ibox/applications/main.c

@@ -17,11 +17,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED0 pin mode to output */
     rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED0_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32f103-onenet-nbiot/applications/main.c

@@ -17,11 +17,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED0 pin mode to output */
     rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED0_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32f103-yf-ufun/applications/main.c

@@ -17,11 +17,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED0 pin mode to output */
     rt_pin_mode(LED3_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED3_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32f107-uc-eval/applications/main.c

@@ -18,11 +18,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED1 pin mode to output */
     rt_pin_mode(LED1_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED1_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32f401-st-nucleo/applications/main.c

@@ -17,11 +17,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED0 pin mode to output */
     rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED0_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32f405-smdz-breadfruit/applications/main.c

@@ -17,11 +17,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED0 pin mode to output */
     rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED0_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32f407-atk-explorer/applications/main.c

@@ -18,11 +18,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED0 pin mode to output */
     rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED0_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32f407-st-discovery/applications/main.c

@@ -17,11 +17,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED0 pin mode to output */
     rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED0_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32f410-st-nucleo/applications/main.c

@@ -17,11 +17,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED0 pin mode to output */
     rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED0_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32f411-atk-nano/applications/main.c

@@ -17,11 +17,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED0 pin mode to output */
     rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED0_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32f411-st-nucleo/applications/main.c

@@ -17,11 +17,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED0 pin mode to output */
     rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED0_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32f411-weact-MiniF4/applications/main.c

@@ -17,11 +17,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED0 pin mode to output */
     rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED0_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32f412-st-nucleo/applications/main.c

@@ -17,11 +17,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED0 pin mode to output */
     rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED0_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32f413-st-nucleo/applications/main.c

@@ -23,11 +23,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED1 pin mode to output */
     rt_pin_mode(LED1_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED1_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32f427-robomaster-a/applications/main.c

@@ -17,11 +17,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED0 pin mode to output */
     rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED0_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 3
bsp/stm32/stm32f429-armfly-v6/applications/main.c

@@ -15,14 +15,12 @@
 
 int main(void)
 {
-    int count = 1;
-
     HC574_SetPin(LED1,0);
     HC574_SetPin(LED2,0);
     HC574_SetPin(LED3,0);
     HC574_SetPin(LED4,0);
 
-    while (count++)
+    while (1)
     {
         HC574_SetPin(LED1,1);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32f429-atk-apollo/applications/main.c

@@ -17,11 +17,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED0 pin mode to output */
     rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED0_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32f429-fire-challenger/applications/main.c

@@ -18,11 +18,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED0 pin mode to output */
     rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED0_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32f429-st-disco/applications/main.c

@@ -18,11 +18,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED1 pin mode to output */
     rt_pin_mode(LED1_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED1_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32f446-st-nucleo/applications/main.c

@@ -17,11 +17,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED2 pin mode to output */
     rt_pin_mode(LED2_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED2_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32f469-st-disco/applications/main.c

@@ -18,11 +18,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED1 pin mode to output */
     rt_pin_mode(LED1_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED1_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32f746-st-disco/applications/main.c

@@ -17,11 +17,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED1 pin mode to output */
     rt_pin_mode(LED1_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED1_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32f767-atk-apollo/applications/main.c

@@ -17,11 +17,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED0 pin mode to output */
     rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED0_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32f767-fire-challenger/applications/main.c

@@ -17,11 +17,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED0 pin mode to output */
     rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED0_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32f767-st-nucleo/applications/main.c

@@ -18,11 +18,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED1 pin mode to output */
     rt_pin_mode(LED1_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED1_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32f769-st-disco/applications/main.c

@@ -18,11 +18,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED1 pin mode to output */
     rt_pin_mode(LED1_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED1_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32g070-st-nucleo/applications/main.c

@@ -17,11 +17,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED0 pin mode to output */
     rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED0_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32g071-st-nucleo/applications/main.c

@@ -17,11 +17,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED0 pin mode to output */
     rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED0_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32g431-st-nucleo/applications/main.c

@@ -17,11 +17,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED2 pin mode to output */
     rt_pin_mode(LED2_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED2_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32h743-atk-apollo/applications/main.c

@@ -17,11 +17,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED0 pin mode to output */
     rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED0_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32h743-st-nucleo/applications/main.c

@@ -17,11 +17,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED0 pin mode to output */
     rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED0_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32h747-st-discovery/applications/main.c

@@ -17,11 +17,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED0 pin mode to output */
     rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED0_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32h750-armfly-h7-tool/applications/main.c

@@ -17,11 +17,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED0 pin mode to output */
     rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED0_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32h750-artpi-h750/applications/main.c

@@ -17,11 +17,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED0 pin mode to output */
     rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED0_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32l010-st-nucleo/applications/main.c

@@ -17,11 +17,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED0 pin mode to output */
     rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED0_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32l053-st-nucleo/applications/main.c

@@ -17,11 +17,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED0 pin mode to output */
     rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED0_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32l412-st-nucleo/applications/main.c

@@ -17,11 +17,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LD4 pin mode to output */
     rt_pin_mode(LD4_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LD4_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 11 - 13
bsp/stm32/stm32l431-BearPi/applications/main.c

@@ -17,19 +17,17 @@
 
 int main(void)
 {
-  int count = 1;
+    rt_kprintf("---Welcome use BearPi---\n");
+    /* set LED pin mode to output */
+    rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
 
-  rt_kprintf("---Welcome use BearPi---\n");
-  /* set LED pin mode to output */
-  rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
+    while (1)
+    {
+        rt_pin_write(LED0_PIN, PIN_HIGH);
+        rt_thread_mdelay(500);
+        rt_pin_write(LED0_PIN, PIN_LOW);
+        rt_thread_mdelay(500);
+    }
 
-  while (count++)
-  {
-    rt_pin_write(LED0_PIN, PIN_HIGH);
-    rt_thread_mdelay(500);
-    rt_pin_write(LED0_PIN, PIN_LOW);
-    rt_thread_mdelay(500);
-  }
-
-  return RT_EOK;
+    return RT_EOK;
 }

+ 1 - 2
bsp/stm32/stm32l432-st-nucleo/applications/main.c

@@ -17,11 +17,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED0 pin mode to output */
     rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED0_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32l433-st-nucleo/applications/main.c

@@ -17,11 +17,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED0 pin mode to output */
     rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED0_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32l452-st-nucleo/applications/main.c

@@ -17,11 +17,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED2 pin mode to output */
     rt_pin_mode(LED2_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED2_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32l475-atk-pandora/applications/main.c

@@ -17,11 +17,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED0 pin mode to output */
     rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED0_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32l475-st-discovery/applications/main.c

@@ -17,11 +17,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED0 pin mode to output */
     rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED0_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32l476-st-nucleo/applications/main.c

@@ -17,11 +17,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED0 pin mode to output */
     rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED0_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32l496-ali-developer/applications/main.c

@@ -17,11 +17,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED0 pin mode to output */
     rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED0_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32l496-st-nucleo/applications/main.c

@@ -17,11 +17,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED2 pin mode to output */
     rt_pin_mode(LED2_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED2_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 3
bsp/stm32/stm32l4r5-st-nucleo/applications/main.c

@@ -23,11 +23,9 @@
 
 int main(void)
 {
-    int count = 1;
-
     rt_pin_mode(LED_RUN_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED_RUN_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32l4r9-st-eval/applications/main.c

@@ -18,11 +18,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED0 pin mode to output */
     rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED0_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32mp157a-st-discovery/applications/main.c

@@ -17,11 +17,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LD7 pin mode to output */
     rt_pin_mode(LED7_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED7_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32mp157a-st-ev1/applications/main.c

@@ -17,11 +17,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LD8 pin mode to output */
     rt_pin_mode(LED4_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED4_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32wb55-st-nucleo/applications/main.c

@@ -17,11 +17,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED0 pin mode to output */
     rt_pin_mode(LED1_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED1_PIN, PIN_HIGH);
         rt_thread_mdelay(500);

+ 1 - 2
bsp/stm32/stm32wl55-st-nucleo/applications/main.c

@@ -19,11 +19,10 @@
 
 int main(void)
 {
-    int count = 1;
     /* set LED_BLUE pin mode to output */
     rt_pin_mode(LED_BLUE_PIN, PIN_MODE_OUTPUT);
 
-    while (count++)
+    while (1)
     {
         rt_pin_write(LED_BLUE_PIN, PIN_HIGH);
         rt_thread_mdelay(500);