1 /** @file cmdio_tisci.c
2 * @brief Texas Instrument SCI IO for cmdProc
5 * Definition of IO. This implementation uses queues as buffers, which are than used for input and output.
10 #include "cmdproc_io_tisci.h"
14 int tisci_putc(cmd_io_t *cmd_io, int ch) {
15 rpp_sci_putc((uint8_t)ch);
19 int tisci_getc(cmd_io_t *cmd_io) {
27 int tisci_write(cmd_io_t *cmd_io, const void *buf, int count) {
28 const char *tmpBuf = buf;
30 return rpp_sci_printf("%s", tmpBuf);
32 int tisci_read(cmd_io_t *cmd_io, void *buf, int count) {
33 uint8_t* tmpBuf = buf;
34 return rpp_sci_read(count, tmpBuf);
37 /* Setting io stack for cmdProc */