I used uart receive using polling method. But same I want to use in ISR. How can I write a ISR function. For example if I am using CC2541. In the manual I have seen that Vector Table for Port 1(where UART is connected) is P1INT_VECTOR. But I don't know how to write a function. After some search I found many people used a function like below.
#pragma vector = P1INT_VECTOR
__interrupt void p0_ISR(void)
{
/*Some statement*/
}
But I don't know what is p0_ISR. I didn't see this in the manual or datasheet. This interrupt function has any prototype?. Can some one help me to understand this. So that I can implement to every microcontroller not only CC2541