stm32-rs / stm32f1xx-hal

A Rust embedded-hal HAL impl for the STM32F1 family based on japarics stm32f103xx-hal
Apache License 2.0
550 stars 173 forks source link

remap enums #462

Open burrbull opened 1 year ago

burrbull commented 1 year ago

This is breaking change. It uses similar idea to https://github.com/stm32-rs/stm32f4xx-hal/pull/594 and family, but different. Istead of pins: TupleOfPinEnums peripheral keeps pins: EnumOfPinTupleCombinations. It is less beautiful and flexible, but gives workaround for AFIO map issues (which is F1 only).

Needs complex testing. cc @all_who_can_test_and_have_ideas :)