16.8.1.2.1 Code
Copy-paste the following code to your user application:
uint8_t
string
[] =
"Hello World!\r\n"
;
usart_write_buffer_wait(&usart_instance,
string
,
sizeof
(
string
));
uint16_t temp;
while
(
true
) {
if
(usart_read_wait(&usart_instance, &temp) == STATUS_OK) {
while
(usart_write_wait(&usart_instance, temp) != STATUS_OK) {
}
}
}