1
0
Fork 0
forked from len0rd/rockbox

Xduoo Gpio fix bug

Change-Id: I76eda59a391a408d1a6642497d8cc4aeb93a0da1
This commit is contained in:
William Wilgus 2020-09-03 16:04:37 -04:00
parent 0cb162a76b
commit 48a2b80c77

View file

@ -282,7 +282,10 @@ void SADC(void)
if (!__gpio_get_pin(PIN_KEY_INT)) /* key(s) are down kick off another read */ if (!__gpio_get_pin(PIN_KEY_INT)) /* key(s) are down kick off another read */
{ {
#ifdef ENABLE_BUTTON_COMBOS
/* setting bit high removes BOP from ADC circuit*/
__gpio_set_pin(PIN_KEY_BOP); __gpio_set_pin(PIN_KEY_BOP);
#endif
REG_SADC_ADENA = ADENA_AUXEN; REG_SADC_ADENA = ADENA_AUXEN;
} }
#ifdef ENABLE_BUTTON_COMBOS #ifdef ENABLE_BUTTON_COMBOS