private void InitWatchDogDriver() { bool initResult = watchdog.Initialize(); if (!initResult) { driver_status.Text = "驱动加载失败!"; driver_status.Foreground = new SolidColorBrush(Colors.Red); } else { driver_status.Text = "驱动加载完成!"; watchdog.InitSuperIO(); chip_name.Text = "芯片型号:ITE " + watchdog.GetChipName(); watchdog.ExitSuperIo(); } }
private bool InitGPIODriver() { bool initResult = gpio.Initialize(); if (!initResult) { driver_status.Text = "驱动加载失败!"; driver_status.Foreground = new SolidColorBrush(Colors.Red); } else { driver_status.Text = "驱动加载完成!"; gpio.InitSuperIO(); chip_name.Text = "芯片型号:ITE " + gpio.GetChipName(); gpio.ExitSuperIo(); } return(initResult); }