void CLevel23_Return(void) { //switch(vCounter[1]) switch(GetCounter2()) { case 1://自检 返回 检测蜂鸣器标志是否已经打开 ,如果已经打开,则开启 Led_Off(); // if(GetSpeakerClick()) // { // SetAlarmFlag(0,1); // } //delay DelayMs(10); PWM1_Stop(); PWM1_Set(0,0); DelayMs(10); BEEPOn(); PWM1_Start(); PWM1_Set( PWM_CYCLE, 0 ); DelayMs(10); PWM1_Stop(); PWM1_Set(0,0); SetZjFlag(0);//中断里打开喇叭响检测 ClearScreen(0); Test_Menu(1); // SetSpeaker_Counter(0); // CLevel27_Sure(); break; case 2: CSetIntenFlag(0); ClearScreen(0); Test_Menu(2); break; default:break; } SetCounter3(1); //vCounter[2] = 1; }
/* * ISO 整板测试 */ void ISO_Test(void) { uint8_t board_test=0; i2c_CheckDevice(); delay(0xff); ee_ReadBytes(&board_test, 0, 1); if(board_test != 0x55) //自检未通过 { ISO_AutoTest(); } else { ISO_Init(); Test_Menu(); Board_Test(); } while( 1 ){} }