1、KEY_CHK 按键引脚模式的配置
GPIO_InitStructure.GPIO_Pin = KEY_CHK_PIN;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IPU;
GPIO_Init(KEY_CHK_PORT, &GPIO_InitStructure);
2、BUZ_CTRL 蜂鸣器模式的配置
GPIO_InitStructure.GPIO_Pin = BUZZ_PIN;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
GPIO_Init(BUZZ_PORT, &GPIO_InitStructure);
3、RELAY_CHK 电平引脚的检测
GPIO_InitStructure.GPIO_Pin = RELAY1_CHK_PIN;
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IPD;
GPIO_Init(RELAY1_CHK_PORT, &GPIO_InitStructure);