forked from len0rd/rockbox
Xduoo Gpio fix bug
Change-Id: I76eda59a391a408d1a6642497d8cc4aeb93a0da1
This commit is contained in:
parent
0cb162a76b
commit
48a2b80c77
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue