Re: Runtime pin remapping on STM32F103
Thomas Hobson <thomas@...>
The use case is for this is could be considered as a intelligent GPIO expander for a much larger project, which offloads peripheral tasks to this chip, but so far GPIO/PWM/ADC has been the most problematic
We would have a pin, say A1 which could be mapped to GPIO or PWM by someone unplugging say a button, and plugging in a servo, running a few commands on the chip and it should be ready to control the servo.
Only 5 of the pins need ADC connection, and
there are only 8 different combinations of pin "types" I should
need to support, with the majority being GPIO input with various
different pull up/down and callback configurations.
My problem only arises when I want to switch the pin between, as stated before, a button and a servo where I need to switch between GPIO and PWM.
There are a total of 10 pins I should be controlling, A1-A5 - GPIO/PWM and B1-B5 - GPIO/PWM/ADC.
Hopefully that sums up my use case.
On 10/24/20 3:18 AM, Erwan Gouriou wrote: