enabled clocks and reseting procedure