From ed3ff1b0b5122e898f7310a9b5ed112a22e2828c Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Mon, 17 Mar 2008 23:47:38 +0000 Subject: 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 --- firmware/target/coldfire/iaudio/m3/adc-target.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'firmware/target/coldfire/iaudio/m3/adc-target.h') diff --git a/firmware/target/coldfire/iaudio/m3/adc-target.h b/firmware/target/coldfire/iaudio/m3/adc-target.h index e5ff818647..40ed226bea 100644 --- a/firmware/target/coldfire/iaudio/m3/adc-target.h +++ b/firmware/target/coldfire/iaudio/m3/adc-target.h @@ -26,4 +26,7 @@ #define ADC_BATTERY 1 #define ADC_REMOTE 2 +#define NEED_ADC_CLOSE +void adc_close(void); + #endif /* _ADC_TARGET_H_ */ -- cgit v1.2.3