serial: Use const void * everywhere

Buffers should be stored in read-only areas of memory.
This commit is contained in:
Sean Cross 2014-08-19 15:54:15 +08:00
parent c869671563
commit afefdde334
3 changed files with 11 additions and 17 deletions

View file

@ -4,12 +4,12 @@
#include <stdint.h>
int serial_putc(uint8_t c);
int serial_puts(void *s);
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(void *bfr, int count);
int serial_print_hex(const void *bfr, int count);
#endif /* __SERIAL_H__ */