fernly/include/serial.h
2014-09-19 16:10:34 +08:00

16 lines
352 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 */
int serial_read(void *data, int bytes);
uint8_t serial_getc(void);
void serial_init(void);
int serial_print_hex(const void *bfr, int count);
#endif /* __SERIAL_H__ */