diff options
author | Marcin Bukat <marcin.bukat@gmail.com> | 2010-05-04 11:15:36 +0000 |
---|---|---|
committer | Marcin Bukat <marcin.bukat@gmail.com> | 2010-05-04 11:15:36 +0000 |
commit | bccdcf2003fde999a96fe15c8ca7caed7be94956 (patch) | |
tree | fa7d6c42672f08b1742cbd1a9dde1f25b2c426bd | |
parent | 5ad4d138d7b07572d8e7e8016ce14c78821e1a46 (diff) | |
download | rockbox-bccdcf2003fde999a96fe15c8ca7caed7be94956.tar.gz rockbox-bccdcf2003fde999a96fe15c8ca7caed7be94956.zip |
HD200 - move adc channel variable to iram as it is used in ISR
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25805 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/target/coldfire/mpio/hd200/adc-hd200.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/coldfire/mpio/hd200/adc-hd200.c b/firmware/target/coldfire/mpio/hd200/adc-hd200.c index 8bf96436bf..8a64e00443 100644 --- a/firmware/target/coldfire/mpio/hd200/adc-hd200.c +++ b/firmware/target/coldfire/mpio/hd200/adc-hd200.c | |||
@@ -40,7 +40,7 @@ volatile unsigned short adc_data[NUM_ADC_CHANNELS] IBSS_ATTR; | |||
40 | void ADC(void) __attribute__ ((interrupt_handler,section(".icode"))); | 40 | void ADC(void) __attribute__ ((interrupt_handler,section(".icode"))); |
41 | void ADC(void) | 41 | void ADC(void) |
42 | { | 42 | { |
43 | static unsigned char channel; | 43 | static unsigned int channel IBSS_ATTR; |
44 | /* read current value */ | 44 | /* read current value */ |
45 | adc_data[(channel & 0x03)] = ADVALUE; | 45 | adc_data[(channel & 0x03)] = ADVALUE; |
46 | 46 | ||