LPC17xx UART interface with Ring Buffer definitions.
More...
#include "semphr.h"
#include "string.h"
#include "stdio.h"
Go to the source code of this file.
|
#define | uart_set_baud(id, baud) Chip_UART_SetBaud( usart_cfg[id].ptr, baud ) |
|
#define | uart_config_data(id, cfg) Chip_UART_ConfigData( usart_cfg[id].ptr, cfg ) |
|
#define | uart_tx_enable(id) Chip_UART_TXEnable( usart_cfg[id].ptr ) |
|
#define | uart_tx_disable(id) Chip_UART_TXDisable( usart_cfg[id].ptr ) |
|
#define | uart_int_enable(id, mask) Chip_UART_IntEnable( usart_cfg[id].ptr, mask ) |
|
#define | uart_int_disable(id, mask) Chip_UART_IntDisable( usart_cfg[id].ptr, mask ) |
|
#define | uart_send_char(id, ch) Chip_UART_SendByte( usart_cfg[id].ptr, ch ) |
|
#define | uart_read_char(id) Chip_UART_ReadByte( usart_cfg[id].ptr ) |
|
#define | uart_send(id, msg, len) Chip_UART_SendRB( usart_cfg[id].ptr, &txring, msg, len ) |
|
#define | uart_read(id, buf, len) Chip_UART_ReadRB( usart_cfg[id].ptr, &rxring, buf, len ) |
|
LPC17xx UART interface with Ring Buffer definitions.
- Author
- Henrique Silva henri.nosp@m.que..nosp@m.silva.nosp@m.@lnl.nosp@m.s.br, LNLS
◆ uart_config_data
#define uart_config_data |
( |
| id, |
|
|
| cfg ) Chip_UART_ConfigData( usart_cfg[id].ptr, cfg ) |
◆ uart_int_disable
#define uart_int_disable |
( |
| id, |
|
|
| mask ) Chip_UART_IntDisable( usart_cfg[id].ptr, mask ) |
◆ uart_int_enable
#define uart_int_enable |
( |
| id, |
|
|
| mask ) Chip_UART_IntEnable( usart_cfg[id].ptr, mask ) |
◆ uart_read
#define uart_read |
( |
| id, |
|
|
| buf, |
|
|
| len ) Chip_UART_ReadRB( usart_cfg[id].ptr, &rxring, buf, len ) |
◆ uart_read_char
#define uart_read_char |
( |
| id | ) |
Chip_UART_ReadByte( usart_cfg[id].ptr ) |
◆ uart_send
#define uart_send |
( |
| id, |
|
|
| msg, |
|
|
| len ) Chip_UART_SendRB( usart_cfg[id].ptr, &txring, msg, len ) |
◆ uart_send_char
#define uart_send_char |
( |
| id, |
|
|
| ch ) Chip_UART_SendByte( usart_cfg[id].ptr, ch ) |
◆ uart_set_baud
#define uart_set_baud |
( |
| id, |
|
|
| baud ) Chip_UART_SetBaud( usart_cfg[id].ptr, baud ) |
◆ uart_tx_disable
#define uart_tx_disable |
( |
| id | ) |
Chip_UART_TXDisable( usart_cfg[id].ptr ) |
◆ uart_tx_enable
#define uart_tx_enable |
( |
| id | ) |
Chip_UART_TXEnable( usart_cfg[id].ptr ) |
◆ lpc_uart_cfg_t
◆ uart_init()
void uart_init |
( |
uint8_t | id | ) |
|
◆ rxring
◆ txring
◆ usart_cfg