[GPIO conf]: extend set output direction function