[MERGED] STM32 encoder interface mode

This topic has been merged into I have a problem with STM32 register in Arduino IDE.