/* Configure GPIO pins: LED1_Pin LED2_Pin */
GPIO_InitStruct. Pin=LED1_Pin | LED2_Pin;
GPIO_InitStruct. Mode=GPIO_MODE_OUTPUT_PP;
GPIO_InitStruct. Pull=GPIO_PULLUP;
GPIO_InitStruct. Speed=GPIO_SPEED_FREQ_HIGH;
HAL_GPIO_Init (GPIOB, & amp; GPIO_InitStruct);
Configuration after the test is the high level
Through the keil GPIO_InitStruct. Pull=GPIO_PULLUP; Written GPIO_InitStruct. Pull=GPIO_PULLDOWN;
Why the actual test will not lower?
CodePudding user response:
Level need by SET_BIT CLEAR_BIT or by GPIOx - & gt; BSRR GPIOx - & gt; BRR to set the