Sorry, "it didn't work" means that the C code compiles, but I get an error message when I try to build to hex.
I have a button on the PSoCEval1 wired directly to the port. I am not debouncing it (how do I do that?). Here is my code that catches only the first event:
#include <m8c.h> // part specific constants and macros
#include "PSoCAPI.h" // PSoC API definitions for all User Modules
//#pragma interrupt_handler PSoC_GPIO_ISR
//#pragma interrupt_handler PSoC_GPIO_ISR_C
LCD_1_Start(); // Initialize LCD
LCD_1_Position(0,0); // Place LCD cursor at row 0, col 0.
PRT0DR = 0; //set all low for pull down
PRT0DR |= 0x04; //turn on LED on Port0_2
M8C_EnableIntMask(INT_MSK0,INT_MSK0_GPIO); //activate GPIO ISR
PRT0DR ^= 0x04; //flip bit 2
LCD_1_Position(1,0); // Place LCD cursor at row 0, col 0.
My initial attempt at reading and clearing did not work.