serial: Use const void * everywhere
Buffers should be stored in read-only areas of memory.
This commit is contained in:
parent
c869671563
commit
afefdde334
3 changed files with 11 additions and 17 deletions
|
@ -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__ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue