Port initialization