-
Notifications
You must be signed in to change notification settings - Fork 0
Debug Support Files
Alexander Bhandari edited this page Jan 31, 2016
·
1 revision
#include sci.h
/** @fn void sciSend_32bitdata(sciBASE_t *sci, unsigned int data)
*
* Function used for send a 32bit data on to the SCI at the
* configured baud rate
*/
void sciSend_32bitdata(sciBASE_t *sci, unsigned int data)
{
unsigned char c_get ;
volatile int i = 0;
for( i = 8 ; i > 0 ; i-- )
{
c_get = (data>>28)&15 ;
if( c_get > 9 )
c_get += 7 ;
c_get += 48 ;
while ((sci->FLR & SCI_TX_INT) == 0) { /* wait */ };
sci->TD = c_get;
data = data<<4 ;
}
}