Serial modeselect

Support for serial mode selection and mode 7e1 on STM32. Tested using both a logic analyser and an Ultraheat 2WR5 energy meter.