diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2018-02-21 09:13:53 -0500 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2018-02-21 09:13:53 -0500 |
commit | 5a6c8f4c22e6581f1b970afd68bf4c2c4db4ebf2 (patch) | |
tree | 24ba6301a64460067240605d5cbb6e320e0ccf32 /src/task.c | |
parent | f27b19a531a61aa088d380174cc960b9f2e68237 (diff) |
task pausing
Diffstat (limited to 'src/task.c')
-rw-r--r-- | src/task.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -16,6 +16,11 @@ static volatile int next_idx = 0; static uint8_t task_enable = 0; +void task_hold(uint8_t hold) +{ + task_enable = !hold; +} + void task_init(void (*init)(void)) { for (int i = 0; i < MAX_TASKS; i++) |