stm32f2-f4: refactor <series/stm32.h>

Prep work for adding F4 support.

Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>