Added peripheral clock initialization code.