Added GPIO defines, moved GPIO MUX initialization to new module. Converted if/else to switch in GPIO initialization.