diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2017-05-07 00:09:11 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-05-15 15:00:45 -0400 |
commit | 969ee4c8f9a3080bc20b6a78e846bee8c9455dec (patch) | |
tree | a73e76d0d9a829be0c315727f44e4ba6d6781c06 /src/command.c | |
parent | c35278e217fb45e1001845c33ffd1c947599b40c (diff) | |
download | kutter-969ee4c8f9a3080bc20b6a78e846bee8c9455dec.tar.gz kutter-969ee4c8f9a3080bc20b6a78e846bee8c9455dec.tar.xz kutter-969ee4c8f9a3080bc20b6a78e846bee8c9455dec.zip |
irq: Add an irq_poll() stub for board code
Allow the board specific code to run checks prior to running each
task.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/command.c')
-rw-r--r-- | src/command.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/command.c b/src/command.c index 915bbd42..44de070d 100644 --- a/src/command.c +++ b/src/command.c @@ -7,6 +7,7 @@ #include <stdarg.h> // va_start #include <string.h> // memcpy #include "board/io.h" // readb +#include "board/irq.h" // irq_poll #include "board/misc.h" // crc16_ccitt #include "board/pgm.h" // READP #include "command.h" // output_P @@ -306,6 +307,7 @@ command_task(void) p = parsef(p, msgend, cp, args); if (!p) break; + irq_poll(); void (*func)(uint32_t*) = READP(cp->func); func(args); } |