读取四个io口,都是上拉,检测电压也正常上拉,量的都是3伏
但是debug读取pb3一直是0
volatile uint8_t pb5 = HAL_GPIO_ReadPin(BCD_2_GPIO_Port, BCD_2_Pin);
volatile uint8_t pb4 = HAL_GPIO_ReadPin(BCD_4_GPIO_Port, BCD_4_Pin);
volatile uint8_t pb3 = HAL_GPIO_ReadPin(BCD_3_GPIO_Port, BCD_3_Pin);
volatile uint8_t pd2 = HAL_GPIO_ReadPin(BCD_1_GPIO_Port, BCD_1_Pin);
解决:把这里关闭