Contiki-NG
UART driver

Files

file  uart-arch.c
 UART implementation for the gecko.
 
file  uart-arch.h
 UART header file for the gecko.
 

Functions

void uart_write (unsigned char *s, unsigned int len)
 Writes to the UART driver. More...
 
void uart_set_input (int(*input)(unsigned char c))
 Sets the input handler called in the event handler. More...
 
void uart_init (void)
 Initializa the UART driver.
 

Detailed Description

Function Documentation

◆ uart_set_input()

void uart_set_input ( int(*)(unsigned char c)  input)

Sets the input handler called in the event handler.

Parameters
inputcharacter that has been read

Definition at line 77 of file uart-arch.c.

◆ uart_write()

void uart_write ( unsigned char *  s,
unsigned int  len 
)

Writes to the UART driver.

Parameters
scharacter array to be transferred
lenlength of character array
Precondition
uart_init must have been called

Definition at line 71 of file uart-arch.c.