im trying to configure the GPIOF port to interrupt when SW1 (port f pin 4) and SW1 (port f pin 0). the pin 0 requests modifying registers CR and LOCK:
GPIOF->LOCK =0x4C4F434B;
GPIOF->CR |= 0x01;
SYSCTL->RCGCGPIO |= (1<<5); // enable clock on PORT F
GPIOF->AFSEL =0x00; //&= ~(0x1E); // configure as a GPIO pin, not an alternative.
GPIOF->DIR = (0x0E); //input(0)/output(1)
GPIOF->DEN = (0x1F); // digital enable
GPIOF->PUR = (0x11); // pullup
GPIOF->IM = (0x00); //MASK
GPIOF->IS =0x00; //edge_sensitive(0)/level_sensitive(1) //edge triggred
GPIOF->IBE = 0x00; //controlled GPIOIEV(0)/both edges(1)
GPIOF->IEV = (0x00); //falling edge- lowlevel(0)/rising edge-high level(1)
GPIOF->RIS=(0x00); // clear interrupt
GPIOF->IM = (0x11); //UNMASK
but i recieve this message : expression must be a modifiable lvalue in this line GPIOF->CR |= 0x01;
can someone help me?
Thanks
ps: i'm using IAR Embedded Worbench IDE