📄 uarttest.c
字号:
/*****************************************************************************
* uarttest.c: main C entry file for NXP LPC23xx Family Microprocessors
*
* Copyright(C) 2006, NXP Semiconductor
* All rights reserved.
*
* History
* 2006.07.13 ver 1.00 Prelimnary version, first Release
*
******************************************************************************/
#include "LPC23xx.h" /* LPC23xx/24xx definitions */
#include "type.h"
#include "irq.h"
#include "uart.h"
extern volatile DWORD UART0Count;
extern volatile BYTE UART0Buffer[BUFSIZE];
extern volatile DWORD UART1Count;
extern volatile BYTE UART1Buffer[BUFSIZE];
/*****************************************************************************
** Main Function main()
*****************************************************************************/
int main (void)
{
BYTE b[1] = {0x31};
char d[]= "AT+SDA D=2008091";
char c[]="500000005 O=1F";
int i=0;
int j=0;
UARTInit(0, 9600); /* baud rate setting */
UARTInit(1, 9600); /* baud rate setting */
//while (1)
{ /* Loop forever */
UARTSendByte(1,'A');
UARTSendByte(1,'T');
UARTSendByte(1,'+');
UARTSendByte(1,'S');
UARTSendByte(1,'D');
UARTSendByte(1,'A');
UARTSendByte(1,' ');
UARTSendByte(1,'D');
UARTSendByte(1,'=');
UARTSendByte(1,'2');
UARTSendByte(1,'0');
UARTSendByte(1,'0');
UARTSendByte(1,'8');
UARTSendByte(1,'0');
UARTSendByte(1,'9');
UARTSendByte(1,'1');
UARTSendByte(1,'5');
UARTSendByte(1,'0');
UARTSendByte(1,'0');
UARTSendByte(1,'0');
UARTSendByte(1,'0');
UARTSendByte(1,'0');
UARTSendByte(1,'0');
UARTSendByte(1,'0');
UARTSendByte(1,'5');
UARTSendByte(1,' ');
UARTSendByte(1,'O');
UARTSendByte(1,'=');
UARTSendByte(1,'1');
UARTSendByte(1,'F');
}
//return 0;
}
/*****************************************************************************
** End Of File
*****************************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -