Merge pull request #4537 from mysterywolf/stm32
[stm32] remove 'count' variable in main()
This commit is contained in:
commit
a225ca8014
|
@ -17,17 +17,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED0 pin mode to output */
|
/* set LED0 pin mode to output */
|
||||||
rt_pin_mode(LED2_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED2_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED2_PIN, PIN_HIGH);
|
rt_pin_write(LED2_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED2_PIN, PIN_LOW);
|
rt_pin_write(LED2_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,19 +17,16 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
|
|
||||||
/* set LED2 pin mode to output */
|
/* set LED2 pin mode to output */
|
||||||
rt_pin_mode(LED2_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED2_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED2_PIN, PIN_HIGH);
|
rt_pin_write(LED2_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED2_PIN, PIN_LOW);
|
rt_pin_write(LED2_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -17,17 +17,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED0 pin mode to output */
|
/* set LED0 pin mode to output */
|
||||||
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED0_PIN, PIN_HIGH);
|
rt_pin_write(LED0_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED0_PIN, PIN_LOW);
|
rt_pin_write(LED0_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,13 +19,12 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED0 pin mode to output */
|
/* set LED0 pin mode to output */
|
||||||
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
||||||
/* set LED1 pin mode to output */
|
/* set LED1 pin mode to output */
|
||||||
rt_pin_mode(LED1_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED1_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED0_PIN, PIN_HIGH);
|
rt_pin_write(LED0_PIN, PIN_HIGH);
|
||||||
rt_pin_write(LED1_PIN, PIN_HIGH);
|
rt_pin_write(LED1_PIN, PIN_HIGH);
|
||||||
|
@ -34,6 +33,4 @@ int main(void)
|
||||||
rt_pin_write(LED1_PIN, PIN_LOW);
|
rt_pin_write(LED1_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,17 +17,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED0 pin mode to output */
|
/* set LED0 pin mode to output */
|
||||||
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED0_PIN, PIN_HIGH);
|
rt_pin_write(LED0_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED0_PIN, PIN_LOW);
|
rt_pin_write(LED0_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,17 +18,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED0 pin mode to output */
|
/* set LED0 pin mode to output */
|
||||||
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED0_PIN, PIN_HIGH);
|
rt_pin_write(LED0_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED0_PIN, PIN_LOW);
|
rt_pin_write(LED0_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,17 +17,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED0 pin mode to output */
|
/* set LED0 pin mode to output */
|
||||||
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED0_PIN, PIN_HIGH);
|
rt_pin_write(LED0_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED0_PIN, PIN_LOW);
|
rt_pin_write(LED0_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,17 +17,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED0 pin mode to output */
|
/* set LED0 pin mode to output */
|
||||||
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED0_PIN, PIN_HIGH);
|
rt_pin_write(LED0_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED0_PIN, PIN_LOW);
|
rt_pin_write(LED0_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,17 +17,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED0 pin mode to output */
|
/* set LED0 pin mode to output */
|
||||||
rt_pin_mode(LED4_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED4_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED4_PIN, PIN_HIGH);
|
rt_pin_write(LED4_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED4_PIN, PIN_LOW);
|
rt_pin_write(LED4_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,17 +17,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED0 pin mode to output */
|
/* set LED0 pin mode to output */
|
||||||
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED0_PIN, PIN_HIGH);
|
rt_pin_write(LED0_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED0_PIN, PIN_LOW);
|
rt_pin_write(LED0_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,17 +17,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED0 pin mode to output */
|
/* set LED0 pin mode to output */
|
||||||
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED0_PIN, PIN_HIGH);
|
rt_pin_write(LED0_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED0_PIN, PIN_LOW);
|
rt_pin_write(LED0_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,17 +17,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED0 pin mode to output */
|
/* set LED0 pin mode to output */
|
||||||
rt_pin_mode(LED3_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED3_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED3_PIN, PIN_HIGH);
|
rt_pin_write(LED3_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED3_PIN, PIN_LOW);
|
rt_pin_write(LED3_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,17 +18,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED1 pin mode to output */
|
/* set LED1 pin mode to output */
|
||||||
rt_pin_mode(LED1_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED1_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED1_PIN, PIN_HIGH);
|
rt_pin_write(LED1_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED1_PIN, PIN_LOW);
|
rt_pin_write(LED1_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,17 +17,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED0 pin mode to output */
|
/* set LED0 pin mode to output */
|
||||||
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED0_PIN, PIN_HIGH);
|
rt_pin_write(LED0_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED0_PIN, PIN_LOW);
|
rt_pin_write(LED0_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,17 +17,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED0 pin mode to output */
|
/* set LED0 pin mode to output */
|
||||||
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED0_PIN, PIN_HIGH);
|
rt_pin_write(LED0_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED0_PIN, PIN_LOW);
|
rt_pin_write(LED0_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,17 +18,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED0 pin mode to output */
|
/* set LED0 pin mode to output */
|
||||||
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED0_PIN, PIN_HIGH);
|
rt_pin_write(LED0_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED0_PIN, PIN_LOW);
|
rt_pin_write(LED0_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,11 +17,10 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED0 pin mode to output */
|
/* set LED0 pin mode to output */
|
||||||
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED0_PIN, PIN_HIGH);
|
rt_pin_write(LED0_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
|
|
|
@ -17,17 +17,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED0 pin mode to output */
|
/* set LED0 pin mode to output */
|
||||||
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED0_PIN, PIN_HIGH);
|
rt_pin_write(LED0_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED0_PIN, PIN_LOW);
|
rt_pin_write(LED0_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,17 +17,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED0 pin mode to output */
|
/* set LED0 pin mode to output */
|
||||||
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED0_PIN, PIN_HIGH);
|
rt_pin_write(LED0_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED0_PIN, PIN_LOW);
|
rt_pin_write(LED0_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,17 +17,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED0 pin mode to output */
|
/* set LED0 pin mode to output */
|
||||||
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED0_PIN, PIN_HIGH);
|
rt_pin_write(LED0_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED0_PIN, PIN_LOW);
|
rt_pin_write(LED0_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,17 +17,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED0 pin mode to output */
|
/* set LED0 pin mode to output */
|
||||||
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED0_PIN, PIN_HIGH);
|
rt_pin_write(LED0_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED0_PIN, PIN_LOW);
|
rt_pin_write(LED0_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,17 +17,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED0 pin mode to output */
|
/* set LED0 pin mode to output */
|
||||||
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED0_PIN, PIN_HIGH);
|
rt_pin_write(LED0_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED0_PIN, PIN_LOW);
|
rt_pin_write(LED0_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,16 +23,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED1 pin mode to output */
|
/* set LED1 pin mode to output */
|
||||||
rt_pin_mode(LED1_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED1_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED1_PIN, PIN_HIGH);
|
rt_pin_write(LED1_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED1_PIN, PIN_LOW);
|
rt_pin_write(LED1_PIN, PIN_LOW);
|
||||||
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,17 +17,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED0 pin mode to output */
|
/* set LED0 pin mode to output */
|
||||||
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED0_PIN, PIN_HIGH);
|
rt_pin_write(LED0_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED0_PIN, PIN_LOW);
|
rt_pin_write(LED0_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,20 +15,16 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
|
|
||||||
HC574_SetPin(LED1,0);
|
HC574_SetPin(LED1,0);
|
||||||
HC574_SetPin(LED2,0);
|
HC574_SetPin(LED2,0);
|
||||||
HC574_SetPin(LED3,0);
|
HC574_SetPin(LED3,0);
|
||||||
HC574_SetPin(LED4,0);
|
HC574_SetPin(LED4,0);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
HC574_SetPin(LED1,1);
|
HC574_SetPin(LED1,1);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
HC574_SetPin(LED1,0);
|
HC574_SetPin(LED1,0);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,17 +17,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED0 pin mode to output */
|
/* set LED0 pin mode to output */
|
||||||
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED0_PIN, PIN_HIGH);
|
rt_pin_write(LED0_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED0_PIN, PIN_LOW);
|
rt_pin_write(LED0_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,17 +18,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED0 pin mode to output */
|
/* set LED0 pin mode to output */
|
||||||
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED0_PIN, PIN_HIGH);
|
rt_pin_write(LED0_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED0_PIN, PIN_LOW);
|
rt_pin_write(LED0_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,17 +18,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED1 pin mode to output */
|
/* set LED1 pin mode to output */
|
||||||
rt_pin_mode(LED1_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED1_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED1_PIN, PIN_HIGH);
|
rt_pin_write(LED1_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED1_PIN, PIN_LOW);
|
rt_pin_write(LED1_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,17 +17,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED2 pin mode to output */
|
/* set LED2 pin mode to output */
|
||||||
rt_pin_mode(LED2_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED2_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED2_PIN, PIN_HIGH);
|
rt_pin_write(LED2_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED2_PIN, PIN_LOW);
|
rt_pin_write(LED2_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,17 +18,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED1 pin mode to output */
|
/* set LED1 pin mode to output */
|
||||||
rt_pin_mode(LED1_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED1_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED1_PIN, PIN_HIGH);
|
rt_pin_write(LED1_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED1_PIN, PIN_LOW);
|
rt_pin_write(LED1_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,17 +17,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED1 pin mode to output */
|
/* set LED1 pin mode to output */
|
||||||
rt_pin_mode(LED1_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED1_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED1_PIN, PIN_HIGH);
|
rt_pin_write(LED1_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED1_PIN, PIN_LOW);
|
rt_pin_write(LED1_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,17 +17,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED0 pin mode to output */
|
/* set LED0 pin mode to output */
|
||||||
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED0_PIN, PIN_HIGH);
|
rt_pin_write(LED0_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED0_PIN, PIN_LOW);
|
rt_pin_write(LED0_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,17 +17,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED0 pin mode to output */
|
/* set LED0 pin mode to output */
|
||||||
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED0_PIN, PIN_HIGH);
|
rt_pin_write(LED0_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED0_PIN, PIN_LOW);
|
rt_pin_write(LED0_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,17 +18,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED1 pin mode to output */
|
/* set LED1 pin mode to output */
|
||||||
rt_pin_mode(LED1_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED1_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED1_PIN, PIN_HIGH);
|
rt_pin_write(LED1_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED1_PIN, PIN_LOW);
|
rt_pin_write(LED1_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,17 +18,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED1 pin mode to output */
|
/* set LED1 pin mode to output */
|
||||||
rt_pin_mode(LED1_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED1_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED1_PIN, PIN_HIGH);
|
rt_pin_write(LED1_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED1_PIN, PIN_LOW);
|
rt_pin_write(LED1_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,17 +17,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED0 pin mode to output */
|
/* set LED0 pin mode to output */
|
||||||
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED0_PIN, PIN_HIGH);
|
rt_pin_write(LED0_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED0_PIN, PIN_LOW);
|
rt_pin_write(LED0_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,17 +17,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED0 pin mode to output */
|
/* set LED0 pin mode to output */
|
||||||
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED0_PIN, PIN_HIGH);
|
rt_pin_write(LED0_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED0_PIN, PIN_LOW);
|
rt_pin_write(LED0_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,17 +17,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED2 pin mode to output */
|
/* set LED2 pin mode to output */
|
||||||
rt_pin_mode(LED2_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED2_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED2_PIN, PIN_HIGH);
|
rt_pin_write(LED2_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED2_PIN, PIN_LOW);
|
rt_pin_write(LED2_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,16 +17,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED0 pin mode to output */
|
/* set LED0 pin mode to output */
|
||||||
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED0_PIN, PIN_HIGH);
|
rt_pin_write(LED0_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED0_PIN, PIN_LOW);
|
rt_pin_write(LED0_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,16 +17,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED0 pin mode to output */
|
/* set LED0 pin mode to output */
|
||||||
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED0_PIN, PIN_HIGH);
|
rt_pin_write(LED0_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED0_PIN, PIN_LOW);
|
rt_pin_write(LED0_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,16 +17,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED0 pin mode to output */
|
/* set LED0 pin mode to output */
|
||||||
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED0_PIN, PIN_HIGH);
|
rt_pin_write(LED0_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED0_PIN, PIN_LOW);
|
rt_pin_write(LED0_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,16 +17,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED0 pin mode to output */
|
/* set LED0 pin mode to output */
|
||||||
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED0_PIN, PIN_HIGH);
|
rt_pin_write(LED0_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED0_PIN, PIN_LOW);
|
rt_pin_write(LED0_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,16 +17,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED0 pin mode to output */
|
/* set LED0 pin mode to output */
|
||||||
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED0_PIN, PIN_HIGH);
|
rt_pin_write(LED0_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED0_PIN, PIN_LOW);
|
rt_pin_write(LED0_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,17 +17,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED0 pin mode to output */
|
/* set LED0 pin mode to output */
|
||||||
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED0_PIN, PIN_HIGH);
|
rt_pin_write(LED0_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED0_PIN, PIN_LOW);
|
rt_pin_write(LED0_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,17 +17,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED0 pin mode to output */
|
/* set LED0 pin mode to output */
|
||||||
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED0_PIN, PIN_HIGH);
|
rt_pin_write(LED0_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED0_PIN, PIN_LOW);
|
rt_pin_write(LED0_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,17 +17,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LD4 pin mode to output */
|
/* set LD4 pin mode to output */
|
||||||
rt_pin_mode(LD4_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LD4_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LD4_PIN, PIN_HIGH);
|
rt_pin_write(LD4_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LD4_PIN, PIN_LOW);
|
rt_pin_write(LD4_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,19 +17,15 @@
|
||||||
|
|
||||||
int main(void)
|
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");
|
while (1)
|
||||||
/* set LED pin mode to output */
|
{
|
||||||
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
rt_pin_write(LED0_PIN, PIN_HIGH);
|
||||||
|
rt_thread_mdelay(500);
|
||||||
while (count++)
|
rt_pin_write(LED0_PIN, PIN_LOW);
|
||||||
{
|
rt_thread_mdelay(500);
|
||||||
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;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,17 +17,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED0 pin mode to output */
|
/* set LED0 pin mode to output */
|
||||||
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED0_PIN, PIN_HIGH);
|
rt_pin_write(LED0_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED0_PIN, PIN_LOW);
|
rt_pin_write(LED0_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,17 +17,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED0 pin mode to output */
|
/* set LED0 pin mode to output */
|
||||||
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED0_PIN, PIN_HIGH);
|
rt_pin_write(LED0_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED0_PIN, PIN_LOW);
|
rt_pin_write(LED0_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,17 +17,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED2 pin mode to output */
|
/* set LED2 pin mode to output */
|
||||||
rt_pin_mode(LED2_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED2_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED2_PIN, PIN_HIGH);
|
rt_pin_write(LED2_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED2_PIN, PIN_LOW);
|
rt_pin_write(LED2_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,17 +17,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED0 pin mode to output */
|
/* set LED0 pin mode to output */
|
||||||
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED0_PIN, PIN_HIGH);
|
rt_pin_write(LED0_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED0_PIN, PIN_LOW);
|
rt_pin_write(LED0_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,17 +17,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED0 pin mode to output */
|
/* set LED0 pin mode to output */
|
||||||
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED0_PIN, PIN_HIGH);
|
rt_pin_write(LED0_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED0_PIN, PIN_LOW);
|
rt_pin_write(LED0_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,17 +17,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED0 pin mode to output */
|
/* set LED0 pin mode to output */
|
||||||
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED0_PIN, PIN_HIGH);
|
rt_pin_write(LED0_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED0_PIN, PIN_LOW);
|
rt_pin_write(LED0_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,17 +17,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED0 pin mode to output */
|
/* set LED0 pin mode to output */
|
||||||
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED0_PIN, PIN_HIGH);
|
rt_pin_write(LED0_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED0_PIN, PIN_LOW);
|
rt_pin_write(LED0_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,17 +17,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED2 pin mode to output */
|
/* set LED2 pin mode to output */
|
||||||
rt_pin_mode(LED2_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED2_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED2_PIN, PIN_HIGH);
|
rt_pin_write(LED2_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED2_PIN, PIN_LOW);
|
rt_pin_write(LED2_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,17 +23,13 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
|
|
||||||
rt_pin_mode(LED_RUN_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED_RUN_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED_RUN_PIN, PIN_HIGH);
|
rt_pin_write(LED_RUN_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED_RUN_PIN, PIN_LOW);
|
rt_pin_write(LED_RUN_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,17 +18,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED0 pin mode to output */
|
/* set LED0 pin mode to output */
|
||||||
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED0_PIN, PIN_HIGH);
|
rt_pin_write(LED0_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED0_PIN, PIN_LOW);
|
rt_pin_write(LED0_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,17 +17,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LD7 pin mode to output */
|
/* set LD7 pin mode to output */
|
||||||
rt_pin_mode(LED7_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED7_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED7_PIN, PIN_HIGH);
|
rt_pin_write(LED7_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED7_PIN, PIN_LOW);
|
rt_pin_write(LED7_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,17 +17,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LD8 pin mode to output */
|
/* set LD8 pin mode to output */
|
||||||
rt_pin_mode(LED4_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED4_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED4_PIN, PIN_HIGH);
|
rt_pin_write(LED4_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED4_PIN, PIN_LOW);
|
rt_pin_write(LED4_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,17 +17,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED0 pin mode to output */
|
/* set LED0 pin mode to output */
|
||||||
rt_pin_mode(LED1_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED1_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED1_PIN, PIN_HIGH);
|
rt_pin_write(LED1_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED1_PIN, PIN_LOW);
|
rt_pin_write(LED1_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,17 +19,14 @@
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int count = 1;
|
|
||||||
/* set LED_BLUE pin mode to output */
|
/* set LED_BLUE pin mode to output */
|
||||||
rt_pin_mode(LED_BLUE_PIN, PIN_MODE_OUTPUT);
|
rt_pin_mode(LED_BLUE_PIN, PIN_MODE_OUTPUT);
|
||||||
|
|
||||||
while (count++)
|
while (1)
|
||||||
{
|
{
|
||||||
rt_pin_write(LED_BLUE_PIN, PIN_HIGH);
|
rt_pin_write(LED_BLUE_PIN, PIN_HIGH);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
rt_pin_write(LED_BLUE_PIN, PIN_LOW);
|
rt_pin_write(LED_BLUE_PIN, PIN_LOW);
|
||||||
rt_thread_mdelay(500);
|
rt_thread_mdelay(500);
|
||||||
}
|
}
|
||||||
|
|
||||||
return RT_EOK;
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue