Optimized GPIO access

Signed-off-by: Joerg Fischer <turboj@web.de>