mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-11-14 17:26:08 +01:00
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>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user