mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 20:55:17 -05:00
Xduoo X3 no ADC after ROLO
Speachy suggested we don't shut down the adc on ROLO this fixes the random adc drop out on ROLO Change-Id: Ife7d679ce51a6f767963210ee650815f1de12223
This commit is contained in:
parent
c62493e98a
commit
3c2b6809d9
2 changed files with 8 additions and 0 deletions
|
|
@ -260,6 +260,12 @@ int _battery_voltage(void)
|
|||
void adc_init(void)
|
||||
{
|
||||
bat_val = ADC_MASK;
|
||||
/* don't re-init*/
|
||||
if (!(REG_CPM_CLKGR0 & CLKGR0_SADC) && !(REG_SADC_ADENA & ADENA_POWER))
|
||||
{
|
||||
system_enable_irq(IRQ_SADC);
|
||||
return;
|
||||
}
|
||||
|
||||
__cpm_start_sadc();
|
||||
mdelay(20);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue