update lib to latest, and fix for changes

rcc_core_frequency -> rcc_ahb_frequency