[GPIO config]: extend get gpio direction function