First, what I'm trying to do. I need a CC2541 to measure the pulse width of a train of pulses and load those into a buffer, but I don't know when those pulses will begin.
In the CC253x/4x User's Guide, in the I/O Ports section, on page79, it says:
"Even I/O pins configured as peripheral I/O or general-purpose outputs have interupts generated when enabled."
I've got it connected to a pin that is configured as Timer 4, channel 1 in capture mode. I've also got that pin's GPIO interrupt configure. Just to be clear, the pin isn't configured as a GPIO, but as a peripheral. I want the chip to interrupt on pin change, disable pin interrupts, then enable the timer interrupt. The timer interrupt will load each timer reading into a buffer, then set the clear timer pin, and wait till the next timer interrupt, and repeat till the timer is full. can I configure a pin as a timer, and still get GPIO interrupts if I've enabled both?