+#endif
+
+static uint8_t ao_blinking = 0;
+
+static void
+ao_blink(void)
+{
+ for (;;) {
+ while (!ao_blinking)
+ ao_sleep(&ao_blinking);
+ while (ao_blinking) {
+ ao_led_toggle(AO_LED_BLUE|AO_LED_GREEN);
+ ao_delay(AO_MS_TO_TICKS(500));
+ }
+ }
+}
+
+static struct ao_task ao_blink_task;
+
+static void
+ao_blink_toggle(void)
+{
+ ao_blinking = !ao_blinking;
+ ao_wakeup(&ao_blinking);
+}
+