usart/ISerial.h

Serial interface between DuinoPro (DP) and Dusty (DN)

This module provide interface functions to the DN that exposes the DP’s UART interface.

This module only exists due to the lack of forward comptability between .c and .cpp. Otherwise, it is best to have this file in sm_clib/dn_uart

Date
2017/10/01
Author
Jamie K. Phan

Functions

void dp_usart_init(int)

Initialise the USART.

void dp_usart_end(void)

Terminates the USART operation.

void dp_usart_flush(void)

Flush the USARt.

size_t dp_usart_write(uint8_t)

Write the USART bus.

Return
size of byte
Parameters
  • c: byte to write to USART