fernly/include/serial.h
Sean Cross afefdde334 serial: Use const void * everywhere
Buffers should be stored in read-only areas of memory.
2014-08-19 15:54:15 +08:00

15 lines
312 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 */
uint8_t serial_getc(void);
void serial_init(void);
int serial_print_hex(const void *bfr, int count);
#endif /* __SERIAL_H__ */