/* This function takes a hexadecimal character (e.g. '7' or 'C') and returns the integer equivalent.  */
static u8 h2i(char p)
/* This function takes a hexadecimal character (e.g. '7' or 'C') and returns the integer equivalent.  */
static u8 h2i(char p)
{
	if ((p >= '0') && (p <= '9'))
		return p - '0';
	if ((p >= 'A') && (p <= 'F'))
		return (p - 'A') + 10;
	if ((p >= 'a') && (p <= 'f'))
		return (p - 'a') + 10;
	return 0;
}