Changed gpio pointer to int type, to get proper size IO