updated libopencm3
platform specific functions tailored to latest libopencm3