diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2017-06-16 13:57:11 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-06-29 13:33:58 -0400 |
commit | 44f2a2a9521ee295acbe44cf0d2a5dedd179fd37 (patch) | |
tree | 6bbfa1dba60ab005667c8334cc8cfdf6fab90bea /src/simulator/main.c | |
parent | 292453d3060abf81e13aeb7bc7d76d3c3709da79 (diff) | |
download | kutter-44f2a2a9521ee295acbe44cf0d2a5dedd179fd37.tar.gz kutter-44f2a2a9521ee295acbe44cf0d2a5dedd179fd37.tar.xz kutter-44f2a2a9521ee295acbe44cf0d2a5dedd179fd37.zip |
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>
Diffstat (limited to 'src/simulator/main.c')
-rw-r--r-- | src/simulator/main.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/simulator/main.c b/src/simulator/main.c index bdad1a6a..f0e18737 100644 --- a/src/simulator/main.c +++ b/src/simulator/main.c @@ -85,16 +85,9 @@ timer_read_time(void) * Turn stdin/stdout into serial console ****************************************************************/ -// Return an output buffer that the caller may fill with transmit messages -char * -console_get_output(uint8_t len) -{ - return NULL; -} - -// Accept the given number of bytes added to the transmit buffer +// Encode and transmit a "response" message void -console_push_output(uint8_t len) +console_sendf(const struct command_encoder *ce, va_list args) { } |