diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-05-23 13:40:17 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-05-23 13:40:17 +0200 |
commit | 92c394b44cc846ba044c2862b4f08eadc2160805 (patch) | |
tree | d065e8c58c7da82ec00ec5fe6ecbd091a3516442 /robot/sim.c | |
parent | 33540c7855d52343eb943d3a5144d6b736c234da (diff) |
WIP serial receive
Diffstat (limited to 'robot/sim.c')
-rw-r--r-- | robot/sim.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/robot/sim.c b/robot/sim.c index 1e88feb..554b174 100644 --- a/robot/sim.c +++ b/robot/sim.c @@ -1,6 +1,7 @@ #include <stdio.h> #include <time.h> #include <string.h> +#include <stdint.h> #include "sim.h" @@ -62,3 +63,13 @@ void serial_send(char* message, unsigned int length) { return; } +void serial_receive_ring(char* buffer, unsigned char size) { + simprintfunc("serial_receive_ring", "0x%016lx, %u", (unsigned long) buffer, size); + return; +} + +unsigned char serial_get_received_bytes() { + simprintfunc("serial_get_received_bytes", ""); + return 0; +} + |