correctly configure cflags for stm32l in cmake, fixes some compile errors in driverlib
applied patch by Armin, splitting stm32 SPI settings from general SPI function declarations