forked from len0rd/rockbox
First lame attempt to show correct battery level on the iRiver
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6258 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
09e55a9218
commit
43bf39edb7
6 changed files with 26 additions and 4 deletions
|
@ -202,6 +202,8 @@ void adc_init(void)
|
|||
GPIO_OUT |= 0x80; /* CS high */
|
||||
GPIO_OUT &= ~0x00400000; /* CLK low */
|
||||
|
||||
adc_scan(ADC_BATTERY);
|
||||
|
||||
tick_add_task(adc_tick);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue