yefj
Advanced Member level 5
Hello, in the code bellow i see that gpio pin is defined as input or as pushpull.
I am trying to look at the manual diagram shown bellow , how "hardware wise" pushpull work and how "input" works?
Thanks.
data sheet:
reference manual page 1069:
I am trying to look at the manual diagram shown bellow , how "hardware wise" pushpull work and how "input" works?
Thanks.
data sheet:
reference manual page 1069:
Code:
GPIO_PinModeSet(BSP_GPIO_PB0_PORT, BSP_GPIO_PB0_PIN, gpioModeInput, 0);
// GPIO_PinModeSet(BSP_GPIO_PB1_PORT, BSP_GPIO_PB1_PIN, gpioModeInput, 0);
// Configure LED0 and LED1 as output
GPIO_PinModeSet(BSP_GPIO_LED0_PORT, BSP_GPIO_LED0_PIN, gpioModePushPull, 0);
GPIO_PinModeSet(BSP_GPIO_LED1_PORT, BSP_GPIO_LED1_PIN, gpioModePushPull, 0);