diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-05-25 19:02:23 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-05-25 19:02:23 +0200 |
commit | 87900d6787f8e0af8d37cc313c4e0510ef0b1bf8 (patch) | |
tree | 3f5858a1d7b7291c8415d3d828321f3e20c503ad /robot/sim.h | |
parent | afa10fa556585d965e3a7d46c2fd5436d29cf3c6 (diff) |
serial receive working with empty handlers
Diffstat (limited to 'robot/sim.h')
-rw-r--r-- | robot/sim.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/robot/sim.h b/robot/sim.h index 336592b..6e2498d 100644 --- a/robot/sim.h +++ b/robot/sim.h @@ -5,6 +5,8 @@ #include <unistd.h> #include <stdbool.h> +#include "../shared/bin.h" + extern bool g_w2_sim_headless; // debug fine-tuning @@ -45,11 +47,12 @@ unsigned long get_ms(); // NOLINT void red_led(unsigned char on); // NOLINT void green_led(unsigned char on); // NOLINT void clear(); // NOLINT -void play(const char* melody); // NOLINT +void play(const char *melody); // NOLINT void serial_set_baud_rate(unsigned int rate); // NOLINT -void serial_send(char* message, unsigned int length); // NOLINT -void serial_receive_ring(char* buffer, unsigned char size); // NOLINT +void serial_send(char *message, unsigned int length); // NOLINT +void serial_receive_ring(char *buffer, unsigned char size); // NOLINT unsigned char serial_get_received_bytes(); // NOLINT void w2_sim_setup(int argc, char **argv); void w2_sim_cycle_begin(); +void w2_sim_print_serial(w2_s_bin *data); |