|
libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|
#include <libopencm3/lm3s/usart.h>
Go to the source code of this file.
Functions | |
| void | usart_send (uint32_t usart, uint16_t data) |
| uint16_t | usart_recv (uint32_t usart) |
| void | usart_send_blocking (uint32_t usart, uint16_t data) |
| bool | usart_is_recv_ready (uint32_t usart) |
| bool | usart_is_send_ready (uint32_t usart) |
| uint16_t | usart_recv_blocking (uint32_t usart) |
| void | usart_enable_rx_interrupt (uint32_t usart) |
| void | usart_enable_tx_interrupt (uint32_t usart) |
| void | usart_disable_rx_interrupt (uint32_t usart) |
| void | usart_disable_tx_interrupt (uint32_t usart) |
| void | usart_clear_rx_interrupt (uint32_t usart) |
| void | usart_clear_tx_interrupt (uint32_t usart) |
| bool | usart_get_interrupt_source (uint32_t usart, uint32_t flag) |
| void usart_clear_rx_interrupt | ( | uint32_t | usart | ) |
Definition at line 75 of file usart.c.
References USART_IC, and USART_IC_RX.
| void usart_clear_tx_interrupt | ( | uint32_t | usart | ) |
Definition at line 80 of file usart.c.
References USART_IC, and USART_IC_TX.
| void usart_disable_rx_interrupt | ( | uint32_t | usart | ) |
| void usart_disable_tx_interrupt | ( | uint32_t | usart | ) |
| void usart_enable_rx_interrupt | ( | uint32_t | usart | ) |
Definition at line 55 of file usart.c.
References USART_IM, and USART_IM_RX.
| void usart_enable_tx_interrupt | ( | uint32_t | usart | ) |
Definition at line 60 of file usart.c.
References USART_IM, and USART_IM_TX.
| bool usart_get_interrupt_source | ( | uint32_t | usart, |
| uint32_t | flag | ||
| ) |
| bool usart_is_recv_ready | ( | uint32_t | usart | ) |
Definition at line 39 of file usart.c.
References USART_FR, and USART_FR_RXFE.
Referenced by usart_recv_blocking().

| bool usart_is_send_ready | ( | uint32_t | usart | ) |
Definition at line 44 of file usart.c.
References USART_FR, and USART_FR_BUSY.
Referenced by usart_send_blocking().

| uint16_t usart_recv | ( | uint32_t | usart | ) |
Definition at line 28 of file usart.c.
References USART_DR.
Referenced by usart_recv_blocking().

| uint16_t usart_recv_blocking | ( | uint32_t | usart | ) |
Definition at line 49 of file usart.c.
References usart_is_recv_ready(), and usart_recv().

| void usart_send | ( | uint32_t | usart, |
| uint16_t | data | ||
| ) |
Definition at line 23 of file usart.c.
References USART_DR.
Referenced by usart_send_blocking().

| void usart_send_blocking | ( | uint32_t | usart, |
| uint16_t | data | ||
| ) |
Definition at line 33 of file usart.c.
References usart_is_send_ready(), and usart_send().
