I am working with the TWR-K22F120M Development board. I have looked at some of the Demo code but cannot find out how to do what I wish to do. I would like to have an interrupt occur if Switch 1 or Switch 3 is pushed and I would like to know which switch was pressed. I tried to duplicate the interrupt code fhat is used to interrupt when switch 3 is pushed but I receive and error that PORTC is redefined.
So how do I write code to have an interrupt trigger if either switch 1 or switch 3 is pushed and to know which switch was pressed.