These are the examples provided for [[/users/frank26080115/libraries/LPC1700CMSIS_Lib/]] Note, the entire "program" is not compilable!

Embed: (wiki syntax)

« Back to documentation index

rs485_master.c File Reference

rs485_master.c File Reference

This example used to test RS485 functionality on UART1 of LPC1768.In this case, RS485 function on UART1 acts as Master on RS485 bus. More...

Go to the source code of this file.

Functions

void UART1_IRQHandler (void)
 UART1 interrupt handler sub-routine.
void UART_IntReceive (void)
 UART receive function (ring buffer used)
void UART_IntErr (uint8_t bLSErrType)
 UART Line Status Error.
uint32_t UARTReceive (LPC_UART_TypeDef *UARTPort, uint8_t *rxbuf, uint8_t buflen)
 UART read function for interrupt mode (using ring buffers)
void print_menu (void)
 Print Welcome menu.
int c_entry (void)
 c_entry: Main UART-RS485 program body

Detailed Description

This example used to test RS485 functionality on UART1 of LPC1768.In this case, RS485 function on UART1 acts as Master on RS485 bus.

Version:
2.0
Date:
21. May. 2010
Author:
NXP MCU SW Application Team --------------------------------------------------------------------- Software that is described herein is for illustrative purposes only which provides customers with programming information regarding the products. This software is supplied "AS IS" without any warranties. NXP Semiconductors assumes no responsibility or liability for the use of the software, conveys no license or title under any patent, copyright, or mask work right to the product. NXP Semiconductors reserves the right to make changes in the software without notification. NXP Semiconductors also make no representation or warranty that such application will be suitable for the specified use without further testing or modification.

Definition in file rs485_master.c.