extended GPIO with some further functions

Signed-off-by: Johannes Strasser <johannes.strasser@strasys.at>