fernly/include/serial.h
Sean Cross 70140aa665 serial: Fix serial driver
The serial driver was having issues reading data.  This commit makes
the serial driver more robust.

Signed-off-by: Sean Cross <xobs@kosagi.com>
2015-02-04 21:05:03 +08:00

17 lines
397 B
C

#ifndef __SERIAL_H__
#define __SERIAL_H__
#include <stdint.h>
int serial_putc(uint8_t c);
int serial_puts(const void *s);
void serial_puth(uint32_t hex, int digits); /* Put hex */
void serial_write(const void *d, int bytes);
uint8_t serial_getc(void);
int serial_print_hex(const void *bfr, int count);
int serial_read(void *data, int bytes);
void serial_init(void);
#endif /* __SERIAL_H__ */