Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of MODSERIAL 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
Generated on Sun Jul 24 2022 21:33:01 by
