[GPIO]: extend set input direction function