?? serial1_teststub.c
字號:
/************************************************************/
/* PROJECT NAME: SERIAL */
/* Project: LPC2129 Training course */
/* Engineer: Y.Stalin stalin@nstlindia.com */
/* Filename: SERIAL0_Driver.c */
/* Language: C */
/* Compiler: Keil ARM GCC */
/* Assembler: */
/* */
/************************************************************/
/* COPYRIGHT: NSTL 2008 */
/* LICENSE: PROPRIETORY */
/************************************************************/
/* Function: */
/* */
/* Example */
/* */
/* Demonstrates Use of the LPC2129 GPIO */
/* */
/* Oscillator frequency 12.000 Mhz */
/* Target board NSTL NST2100 */
/************************************************************/
#include <LPC214X.H>
//#include "gpio.h"
//#include "lcd.h"
//#include "common.h"
#include "serial1.h"
unsigned char buff[513];
unsigned char *buf;
int main(void)
{
setClock();
InitSerial1(9600);
putStrS1("SERIAL TEST");
InitSerial1Int((unsigned)serial1_RxISR);
while(1);
}
void serial1_RxISR(void) __irq
{
unsigned char ch;
ch = getCharS1();
putStrS1("\n\rHEX= ");
putHexS1(ch);
// getStrS1(buff);
// putStrS1(buff);
VICVectAddr = 0x00000000; //Dummy write to signal end of interrupt
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -