各位好!!
这样读取PA口的值是不是有问题?
void ACC_DET_SWITCH ()
{
//sta
tic uint32_t ACC_DET_COUNT = 0;
//static uint32_t LOCK_CLOSE_DET_Count = 0;
static uint32_t ReadGPIO_PA_All = 0;
ReadGPIO_PA_All = HAL_GPIO_ReadPin(GPIOA,GPIO_PIN_All);
switch(ReadGPIO_PA_All)
{
case 0x603D:
HAL_Delay(50);
MIRROR_OPEN ;
HAL_Delay(4000);
MIRROR_OPEN_STOP;
break;
}
学习了!谢谢!
一周热门 更多>