LPCOpen Platform  v1.03
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
uart_rom.c File Reference
#include "board.h"

Go to the source code of this file.

Macros

#define APP_UART_RECEIVE_BUGGER_SIZE   9
 

Functions

static void rx_callback (uint32_t err_code, uint32_t n)
 
static void tx_callback (uint32_t err_code, uint32_t n)
 
static void App_error_routine ()
 
static void App_Polling_Send (const char *send_data, uint32_t lenght)
 
static void App_Polling_Receive (char *receive_buffer, uint32_t lenght)
 
static void App_Interrupt_Send (const char *send_data, uint32_t lenght)
 
static void App_UART_API_Init ()
 
void UART0_IRQHandler (void)
 UART0 ISR handler.
 
int main (void)
 Main Function.
 

Variables

static UART_HANDLE_Tuart
 
static uint32_t umem [UART_ROM_MEM_SIZE]
 
static const char welcome [] = "LPC812 XPresso Board USART API ROM Example.\0"
 
static const char Polling_info [] = "UART Polling mode demo! Please type 'hello NXP' to continue.\0"
 
static const char Interrupt_info []
 
static const char terminate [] = "\r\nDemo is terminated. Thanks for using.\0"
 
static char recv_buf [APP_UART_RECEIVE_BUGGER_SIZE]
 
static volatile uint8_t byte
 
static volatile uint8_t test_stop = 0
 
static volatile uint32_t tx_Done = 0