diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2017-08-07 11:33:31 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-08-08 00:27:28 -0400 |
commit | a9982beacf184ccdc4bf1221852c900b0809537d (patch) | |
tree | 0c7774106b678688361ae8b4ffc346eb51b7b013 /src/avr/usbserial.c | |
parent | e9d2ec7c41c60ab74fe2850fb0787af7bb3361f4 (diff) | |
download | kutter-a9982beacf184ccdc4bf1221852c900b0809537d.tar.gz kutter-a9982beacf184ccdc4bf1221852c900b0809537d.tar.xz kutter-a9982beacf184ccdc4bf1221852c900b0809537d.zip |
sched: Introduce sched_wake_tasks() function to wake up tasks
Add function to indicate when tasks need to be run. This will allow
the scheduler code to know if there are any tasks that need to be
processed.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/avr/usbserial.c')
-rw-r--r-- | src/avr/usbserial.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/avr/usbserial.c b/src/avr/usbserial.c index 1b42d6d3..cc7bb12c 100644 --- a/src/avr/usbserial.c +++ b/src/avr/usbserial.c @@ -42,8 +42,10 @@ static void console_pop_input(uint8_t len) { uint8_t needcopy = receive_pos - len; - if (needcopy) + if (needcopy) { memmove(receive_buf, &receive_buf[len], needcopy); + sched_wake_tasks(); + } receive_pos = needcopy; } |