From f582a36e4df16d5709943f7df17a900c8bcc12ab Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 25 May 2016 11:37:40 -0400 Subject: Initial commit of source code. Signed-off-by: Kevin O'Connor --- src/simulator/misc.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/simulator/misc.h (limited to 'src/simulator/misc.h') diff --git a/src/simulator/misc.h b/src/simulator/misc.h new file mode 100644 index 00000000..c279794e --- /dev/null +++ b/src/simulator/misc.h @@ -0,0 +1,21 @@ +#ifndef __SIMU_MISC_H +#define __SIMU_MISC_H + +#include + +// main.c +char *console_get_input(uint8_t *plen); +void console_pop_input(uint8_t len); +char *console_get_output(uint8_t len); +void console_push_output(uint8_t len); + +static inline size_t alloc_maxsize(size_t reqsize) { + return reqsize; +} + +#define HAVE_OPTIMIZED_CRC 0 +static inline uint16_t _crc16_ccitt(char *buf, uint8_t len) { + return 0; +} + +#endif // misc.h -- cgit v1.2.3-70-g09d2