work in progress. something is broken, but i'm taking a snapshot and trying to upgrade atollic.
check in before switch to new atollic
before the upgrade to 5.1
fixed problem with AFIO clock and SPI