SAM3/4 GPIO: Enable peripheral clock for GPIO port when GPIO is configured as input.
The value of a GPIO input is only sampled when the peripheral clock for the port controller the GPIO resides in is enabled. Therefore we need to enable the clock even when polling a GPIO.
parent
b5b7a21b
Please register or sign in to comment