Beispiel #1
0
int ScreenHwInit(void)
{
	int res;
	revStatus = STATE_RESET;
	memset ((void *)(&RevData), 0, sizeof(RevData));
	
	SerialPortContruct(&hw_dev);
	res = hw_dev.InitPort(&hw_dev, UART0_DEV_NAME, UART0, 9600);
	
	return res;
}
Beispiel #2
0
int HwInit(void)
{

	int res;
	revStatus = STATE_RESET;
	memset ((void *)(&RevData), 0, sizeof(RevData));
	
	SerialPortContruct(&hw_dev);
	res = hw_dev.InitPort(&hw_dev, UART0_DEV_NAME, UART0, 9600);
	if (res != HW_SUCCESS)
		return res;

	res = HwSetParament();
	return res;
}