added gpio function mapping