summaryrefslogtreecommitdiff
path: root/firmware/target
diff options
context:
space:
mode:
authorMarcin Bukat <marcin.bukat@gmail.com>2010-05-04 11:15:36 +0000
committerMarcin Bukat <marcin.bukat@gmail.com>2010-05-04 11:15:36 +0000
commitbccdcf2003fde999a96fe15c8ca7caed7be94956 (patch)
treefa7d6c42672f08b1742cbd1a9dde1f25b2c426bd /firmware/target
parent5ad4d138d7b07572d8e7e8016ce14c78821e1a46 (diff)
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
Diffstat (limited to 'firmware/target')
-rw-r--r--firmware/target/coldfire/mpio/hd200/adc-hd200.c2
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;
void ADC(void) __attribute__ ((interrupt_handler,section(".icode")));
void ADC(void)
{
- static unsigned char channel;
+ static unsigned int channel IBSS_ATTR;
/* read current value */
adc_data[(channel & 0x03)] = ADVALUE;