-
-static struct ao_task red_task;
-static struct ao_task green_task;
-
-static void
-red(void)
-{
- for (;;) {
- ao_led_toggle(LED_RED);
- ao_delay(AO_MS_TO_TICKS(500));
- }
-}
-
-static void
-green(void)
-{
- for (;;) {
- ao_led_toggle(LED_GREEN);
- ao_delay(AO_MS_TO_TICKS(450));
- }
-}