Contiki-NG
|
Files | |
file | uart0-arch.c |
Implementation of UART driver for CC13xx/CC26xx. | |
file | uart0-arch.h |
Header file of UART driver for CC13xx/CC26xx. | |
Functions | |
void | uart0_init (void) |
Initializes the UART driver. | |
int_fast32_t | uart0_write (const void *buf, size_t buf_size) |
Writes data from a memory buffer to the UART interface. | |
int_fast32_t | uart0_write_byte (uint8_t byte) |
Writes a single byte to the UART interface. | |
int_fast32_t | uart0_set_callback (uart0_input_fxn_t input_cb) |
Set the callback function for when bytes are received on UART0. | |
This particular driver utilizes the UART0 peripheral specifically.
Driver for the CC13xx/CC26xx UART controller.
int_fast32_t uart0_set_callback | ( | uart0_input_fxn_t | input_cb | ) |
Set the callback function for when bytes are received on UART0.
input_cb | Pointer to the callback function. A valid pointer subscribes for UART0 callbacks when bytes are received, while a NULL pointer unsubscribes. |
Definition at line 124 of file uart0-arch.c.
Referenced by platform_init_stage_two(), and slip_arch_init().
int_fast32_t uart0_write | ( | const void * | buf, |
size_t | buf_size ) |
Writes data from a memory buffer to the UART interface.
buf | A pointer to the data buffer. |
buf_size | Size of the data buffer. |
Definition at line 106 of file uart0-arch.c.
Referenced by dbg_putchar(), dbg_send_bytes(), and slip_arch_writeb().
int_fast32_t uart0_write_byte | ( | uint8_t | byte | ) |
Writes a single byte to the UART interface.
byte | Byte to write. |
Definition at line 115 of file uart0-arch.c.