forked from len0rd/rockbox
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
This commit is contained in:
parent
5ad4d138d7
commit
bccdcf2003
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue