STDIO abstraction

Simple standard input/output (STDIO) abstraction for RIOT.

void stdio_init(void)

initialize the module

msp430_types.h::ssize_t stdio_read(void * buffer, msp430_types.h::size_t max_len)

read len bytes from stdio uart into buffer

Parameters

buffer:buffer to read into
max_len:nr of bytes to read

Return values

  • nr of bytes read
  • <0 on error
msp430_types.h::ssize_t stdio_write(const void * buffer, msp430_types.h::size_t len)

write len bytes from buffer into uart

Parameters

buffer:buffer to read from
len:nr of bytes to write

Return values

  • nr of bytes written
  • <0 on error