forked from len0rd/rockbox
Various coldfire fixes: (1) iAudio Bootloader: Check the status of main & remote power button vs. the respective hold switch, and shut down when on hold. On X5/M5 this check is not strictly necessary for the main unit, but left there to keep things uniform. (2) M3: Stop reading the ADC properly before leaving the bootloader, on RoLo, and on reboot, to make it work reliably after those transitions. (3) Disable all interrupt sources on system init to avoid premature ISR calls after enabling interrupts in general. (4) iAudios: Proper implementation of ide_powered(), avoiding nasty HDD clicks in the bootloader when powering down, e.g. because of Hold. (5) Slight optimisations.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16689 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
4071826c81
commit
ed3ff1b0b5
8 changed files with 71 additions and 21 deletions
|
@ -25,4 +25,8 @@
|
|||
unsigned short adc_read(int channel);
|
||||
void adc_init(void);
|
||||
|
||||
#ifndef NEED_ADC_CLOSE
|
||||
#define adc_close()
|
||||
#endif
|
||||
|
||||
#endif /* _ADC_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue