add sm502 gpio input/output call back handler