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.
2 parents 1600347 + 97b6b33 commit b1fac71Copy full SHA for b1fac71
examples/simba-blink/src/main.c
@@ -1,6 +1,6 @@
1
/**
2
* @file main.c
3
- * @version 1.0
+ * @version 4.1.0
4
*
5
* @section License
6
* Copyright (C) 2015-2016, Erik Moqvist
@@ -24,16 +24,17 @@ int main()
24
{
25
struct pin_driver_t led;
26
27
- /* Start the kernel. */
+ /* Start the system. */
28
sys_start();
29
30
- /* Initialize the LED pin as output. */
+ /* Initialize the LED pin as output and set its value to 1. */
31
pin_init(&led, &pin_led_dev, PIN_OUTPUT);
32
-
+ pin_write(&led, 1);
33
+
34
while (1) {
- /* Wait for a seconds. */
35
- thrd_usleep(1000000);
36
+ /* Wait half a second. */
+ thrd_sleep_us(500000);
37
38
/* Toggle the LED on/off. */
39
pin_toggle(&led);
40
}
0 commit comments