Error: PCICR was not declared in this scope


all of interrupt constants in code fragment below throwing same error mentioned in thread title. i've reduced code bare minimum , still error:
code: [select]

void setup()
{
  cli();
  pcicr |= (1 << pcie2);                      // interrupt service code
  pcmsk2 |= (1 << pcint18) | (1 << pcint19);
  sei();

}

void loop()
{
}


i read nick's suggestion data definition @ top of file...same error. i've gone out of ide, reloaded it...same error. rebooted...same error. strange thing had code compiling 2 interrupt assignments before , working fine. i've tried adding various includes thought might help...no such luck.  wish remember exact change made broke it, don't.

any ideas?

i found error. somehow managed select attiny85 chip board when i'm using uno.

never mind...


Arduino Forum > Using Arduino > Programming Questions > Error: PCICR was not declared in this scope


arduino

Comments

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support