Added barriers after turhing on peripheral clocks