Use ## to create sections (Learn more)
void ADC(void) __attribute__ ((interrupt_handler,section(".icode")));
static unsigned int channel IBSS_ATTR;
/* read current value */
adc_data[(channel & 0x03)] = ADVALUE;
/* switch channel
* set source remark
* ADCONFIG is 16bit wide so we have to shift data by 16bits left
* thats why we shift <<24 instead of <<8
or_l( (((channel & 0x03) << 8 )|(1<<7))<<16, &ADCONFIG);
Share the private access URL responsibly.
Anyone will be able to find and view this paste. Google will index it.
All that is necessary for the triumph of evil is that good men do nothing. Do something.