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_NUCLEO_F401RE.cpp
00001 #ifdef TARGET_NUCLEO_F401RE 00002 #include "MODSERIAL.h" 00003 00004 void MODSERIAL::setBase(void ) { 00005 switch( _serial.index ) { 00006 case 0: _base = USART1; _IRQ = USART1_IRQn; break; 00007 case 1: _base = USART2; _IRQ = USART2_IRQn; break; 00008 case 2: _base = USART6; _IRQ = USART6_IRQn; break; 00009 default: _base = NULL; _IRQ = (IRQn_Type)NULL; break; 00010 } 00011 } 00012 00013 void MODSERIAL::initDevice(void) {}; 00014 00015 bool MODSERIAL::txIsBusy( void ) 00016 { 00017 return ( (((USART_TypeDef*)_base)->SR & ( 1UL << 6 )) == 0 ) ? true : false; 00018 } 00019 00020 #endif
Generated on Tue Jul 12 2022 19:22:40 by
1.7.2
