Updates to bring in line with latest libopencm3.

Built against locm3 commit 90172f9d72c2fcafa4701609ddfc6d65cfb84994.
Tidying up stm_flash and updating for latest libopencm3.