mirror of
https://github.com/Klipper3d/klipper.git
synced 2026-03-17 16:25:27 -06:00
command: Move low-level sendf transmission into board code
Export a new console_sendf() function from the board code instead of console_get_output() and console_push_output(). This enables more flexibility in how the board specific code produces output. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
292453d306
commit
44f2a2a952
8 changed files with 87 additions and 40 deletions
|
|
@ -1,11 +1,12 @@
|
|||
#ifndef __GENERIC_MISC_H
|
||||
#define __GENERIC_MISC_H
|
||||
|
||||
#include <stdarg.h> // va_list
|
||||
#include <stddef.h> // size_t
|
||||
#include <stdint.h> // uint8_t
|
||||
|
||||
char *console_get_output(uint8_t len);
|
||||
void console_push_output(uint8_t len);
|
||||
struct command_encoder;
|
||||
void console_sendf(const struct command_encoder *ce, va_list args);
|
||||
|
||||
uint32_t timer_from_us(uint32_t us);
|
||||
uint8_t timer_is_before(uint32_t time1, uint32_t time2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue