![]() |
LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
|
#include "uart_18xx_43xx.h"
Go to the source code of this file.
Functions | |
static UART_ID_Type | Chip_UART_Get_UARTNum (LPC_USART_Type *UARTx) |
static CCU_CLK_T | Chip_UART_DetermineClk (LPC_USART_Type *UARTx) |
void | Chip_UART_Init (LPC_USART_Type *UARTx) |
Initializes the UARTx peripheral. | |
void | Chip_UART_DeInit (LPC_USART_Type *UARTx) |
De-initializes the UARTx peripheral. | |
Status | Chip_UART_SetBaud (LPC_USART_Type *UARTx, uint32_t baudrate) |
Determines best dividers to get a target baud rate. | |
void | Chip_UART_TxCmd (LPC_USART_Type *UARTx, FunctionalState NewState) |
Enable/Disable transmission on UART TxD pin. | |
UART_Int_Status | Chip_UART_GetIntStatus (LPC_USART_Type *UARTx) |
Get Interrupt Stream Status. | |
void | Chip_UART_Interrupt_Handler (LPC_USART_Type *UARTx) |
Uart interrupt service routine (chip layer) | |
uint32_t | Chip_UART_Interrupt_Transmit (LPC_USART_Type *UARTx, uint8_t *txbuf, uint8_t buflen) |
UART transmit function for interrupt mode (using ring buffers) | |
uint32_t | Chip_UART_Interrupt_Receive (LPC_USART_Type *UARTx, uint8_t *rxbuf, uint8_t buflen) |
UART read function for interrupt mode (using ring buffers) | |
void | Chip_UART_InitRingBuffer (void) |
Reset Tx and Rx ring buffer (head and tail) | |
Variables | |
static UART_RingBuffer_Type | rb |
static __IO FlagStatus | TxIntStat |
|
static |
Definition at line 69 of file uart_18xx_43xx.c.
|
static |
Definition at line 53 of file uart_18xx_43xx.c.
|
static |
UART Ring buffer declaration
Definition at line 39 of file uart_18xx_43xx.c.
|
static |
Current Tx Interrupt enable state
Definition at line 42 of file uart_18xx_43xx.c.