Update example-fsm-55.

This commit is contained in:
NIIBE Yutaka
2017-11-17 11:44:56 +09:00
parent 44054415c8
commit 2b98dc3de8
5 changed files with 15 additions and 57 deletions

View File

@@ -364,7 +364,7 @@ main (int argc, const char *argv[])
(void)argc;
(void)argv;
chopstx_conf_idle (4);
chopstx_conf_idle (1);
chopstx_mutex_init (&mtx);
chopstx_cond_init (&cnd0);
@@ -406,8 +406,8 @@ main (int argc, const char *argv[])
chopstx_join (button_thd, NULL);
chopstx_join (led_thd, NULL);
for (;;)
asm volatile ("wfi" : : : "memory");
chopstx_conf_idle (4);
chopstx_poll (NULL, 0, NULL);
return 0;
}