Export GPIO for inputs

This commit is contained in:
Alex Swedenburg 2015-11-17 10:10:30 -07:00
parent ebacfea517
commit 979385a78e
1 changed files with 5 additions and 0 deletions

5
ptt.c
View File

@ -556,6 +556,11 @@ void ptt_init (struct audio_s *audio_config_p)
export_gpio(audio_config_p->achan[ch].octrl[ot].ptt_gpio, audio_config_p->achan[ch].octrl[ot].ptt_invert, 1); export_gpio(audio_config_p->achan[ch].octrl[ot].ptt_gpio, audio_config_p->achan[ch].octrl[ot].ptt_invert, 1);
} }
} }
for (ot = 0; ot < NUM_ICTYPES; ot++) {
if (audio_config_p->achan[ch].ictrl[ot].method == PTT_METHOD_GPIO) {
export_gpio(audio_config_p->achan[ch].ictrl[ot].gpio, audio_config_p->achan[ch].ictrl[ot].invert, 0);
}
}
} }
} }
#endif #endif