Stm32f3 discovery

Preliminary support for F3 based on #625 of @memeruiz

Still needs quite a bit of work (see comments in previous pull request) and testing...