Demo application for using the AT&T IoT Starter Kit Powered by AWS.
Dependencies: SDFileSystem
Fork of ATT_AWS_IoT_demo by
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
Generated on Tue Jul 12 2022 22:13:21 by 1.7.2