V.06 11/3

Dependencies:   FT6206 SDFileSystem SPI_TFT_ILI9341 TFT_fonts

Fork of ATT_AWS_IoT_demo by attiot

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers MODSERIAL_LPC11U24.cpp Source File

MODSERIAL_LPC11U24.cpp

00001 #ifdef TARGET_LPC11U24
00002 #include "MODSERIAL.h"
00003 
00004 void MODSERIAL::setBase(void ) {
00005     _base = LPC_USART;
00006     _IRQ = UART_IRQn;
00007 }
00008 
00009 void MODSERIAL::initDevice(void) {
00010     ((LPC_USART_Type*)_base)->FCR = (1UL<<0) + (1UL<<1) + (1UL<<2);
00011     }
00012 
00013 bool MODSERIAL::txIsBusy( void ) 
00014 { 
00015     return ( (((LPC_USART_Type*)_base)->LSR & ( 1UL << 6 )) == 0 ) ? true : false; 
00016 } 
00017 #endif
00018