Timer: STM32: refactore andvancecd timer

Converted enums to enum classes and replaced preprocessor
macros with jinja2 statements.
Examples: STM32F3D: Timer: make work with new xpcc
Examples: STM32F3D: Blink: remove deprecated gpio macros
Adc: STM32F3: make interrupt an enum class flag