Based on the f0 support, which has identical functionality, but with doxygen added. Bits renamed as they are only HSE prediv on some targets, and makes things more consistent with the f0. Fixes part of github issue #560