setting GSM_ON and GSM_RESET pin modes before writing to them.