stm32-rs / stm32g4xx-hal

Peripheral access API for STM32G4 series microcontrollers
Apache License 2.0
66 stars 48 forks source link

Fix `listen` return mode and relax pin constraint #139

Closed AdinAck closed 2 months ago

AdinAck commented 2 months ago

The listen function for GPIO pins had a return type of P<Input<PushPull>> which to my understanding is a nonsensical pin mode.

Additionally, the body of the function forced the pin to be a floating input, but EXTI works with pins in any mode, so the original mode should persist.

usbalbin commented 2 months ago

Thanks :)