keil_examples/UART/udmatest.c
/*****************************************************************************
** Function name:		ConvertDigital
**
** Descriptions:		Convert Digital to ASCII
**
** parameters:			digit
** Returned value:		ASCII char
** 
*****************************************************************************/
Function name:         ConvertDigital
Descriptions:          Convert Digital to ASCII

digit
Returned value:                ASCII char
Function name : ConvertDigital Descriptions : Convert Digital to ASCII digit Returned value : ASCII char
static uint8_t ConvertDigital ( uint8_t digit )
{
  static uint8_t hex[] = "0123456789ABCDEF";
  return hex[digit & 0xf];
}
static uint8_t ConvertDigital ( uint8_t digit ) { static uint8_t hex [ ] = " " ; return hex [ digit & 0xf ] ; }
Function name:         ConvertDigital
Descriptions:          Convert Digital to ASCII
Function name : ConvertDigital Descriptions : Convert Digital to ASCII