/* State table: RE DE Result 1 1 XMIT 0 0 RCV 1 0 Shutdown  */
static void set_rs485re(unsigned char rs485re_state)
/* State table: RE DE Result 1 1 XMIT 0 0 RCV 1 0 Shutdown  */
static void set_rs485re(unsigned char rs485re_state)
{
	if(rs485re_state)
		*CPLD_RS485_RE = 0x010000;
	else
		*CPLD_RS485_RE = 0x0;
}