#include <string.h>
#include "LPC214x.h"
#include "interrupt_utils.h"
#include "system.h"
#include "main.h"
#include "uart.h"
#include "irq.h"
#include "hardware.h"
#include "gpsmath.h"
#include "ssp.h"
#include "lpcUART.h"
#include "HL_interface.h"
Go to the source code of this file.
Defines |
#define | UART0_DISABLE_RX_INT uart0_rx_cpsr=disableIRQ();U0IER &= ~UIER_ERBFI;restoreIRQ(uart0_rx_cpsr); |
#define | UART0_DISABLE_TX_INT uart0_tx_cpsr=disableIRQ();U0IER &= ~UIER_ETBEI;restoreIRQ(uart0_tx_cpsr); |
#define | UART0_ENABLE_RX_INT uart0_rx_cpsr=disableIRQ();U0IER |= UIER_ERBFI;restoreIRQ(uart0_rx_cpsr); |
#define | UART0_ENABLE_TX_INT uart0_tx_cpsr=disableIRQ();U0IER |= UIER_ETBEI;restoreIRQ(uart0_tx_cpsr); |
Functions |
void | __putchar (int ch) |
uint16_t | crc16 (void *data, uint16_t cnt, uint16_t crc) |
uint16_t | crc_update (uint16_t crc, uint8_t data) |
uint16_t | Fifo_availableMemory (Fifo *fifo) |
void | Fifo_initialize (Fifo *fifo, volatile uint8_t *buffer, uint32_t bufferSize) |
uint8_t | Fifo_readByte (Fifo *fifo, uint8_t *byte) |
void | Fifo_reset (Fifo *fifo) |
uint8_t | Fifo_writeBlock (Fifo *fifo, void *data, uint32_t length) |
uint8_t | Fifo_writeByte (Fifo *fifo, uint8_t byte) |
void | parseRxFifo (void) |
PacketInfo * | registerPacket (uint8_t descriptor, void *data) |
void | startAutoBaud (void) |
void | UART0_rxFlush (void) |
int | UART0_txEmpty (void) |
void | UART0_txFlush (void) |
uint8_t | UART0_writeFifo (void *data, uint32_t length) |
void | uart0ISR (void) |
void | UART_send (char *buffer, unsigned char length) |
void | UART_send_ringbuffer (void) |
void | UARTInitialize (unsigned int baud) |
unsigned char | UARTReadChar (void) |
void | UARTWriteChar (unsigned char ch) |
int | writePacket2Ringbuffer (uint8_t descriptor, void *data, uint8_t length) |
Variables |
volatile char | autobaud_in_progress = 0 |
PacketInfo | packetInfo [PACKET_INFO_SIZE] |
uint32_t | registeredPacketCnt = 0 |
volatile uint8_t | rxBuffer [UART0_RX_BUFFERSIZE] |
Fifo | rxFifo |
uint8_t | rxParseBuffer [UART0_RX_BUFFERSIZE] |
volatile unsigned char | transmission_running = 0 |
volatile uint8_t | txBuffer [UART0_TX_BUFFERSIZE] |
Fifo | txFifo |
volatile short | uart0_min_rx_buffer = UART0_RX_BUFFERSIZE |
volatile short | uart0_min_tx_buffer = UART0_TX_BUFFERSIZE |
unsigned | uart0_rx_cpsr |
unsigned | uart0_tx_cpsr |
volatile unsigned int | UART_rxGoodPacketCount = 0 |
volatile unsigned int | UART_rxPacketCount = 0 |
Define Documentation
Function Documentation
uint16_t crc16 |
( |
void * |
data, |
|
|
uint16_t |
cnt, |
|
|
uint16_t |
crc |
|
) |
| [inline] |
uint16_t crc_update |
( |
uint16_t |
crc, |
|
|
uint8_t |
data |
|
) |
| [inline] |
void UART_send |
( |
char * |
buffer, |
|
|
unsigned char |
length |
|
) |
| |
Variable Documentation