MODSERIAL with support for more devices

Dependents:   1D-Pong BMT-K9_encoder BMT-K9-Regelaar programma_filter ... more

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers MODSERIAL_KL05Z.cpp Source File

MODSERIAL_KL05Z.cpp

00001 #ifdef TARGET_KL05Z
00002 #include "MODSERIAL.h"
00003 
00004 void MODSERIAL::setBase(void ) {
00005     _base = UART0;
00006     _IRQ  = UART0_IRQn;
00007 }
00008 
00009 void MODSERIAL::initDevice(void) {};
00010 
00011 bool MODSERIAL::txIsBusy( void ) 
00012 { 
00013     return ( ((UARTLP_Type*)_base)->S1 & ( 1UL << 6 ) == 0 ) ? true : false; 
00014 } 
00015 #endif
00016