This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2530: how HAL_ISR_FUNCTION work ?

Part Number: CC2530

I want the port1 of cc2530 has interrupt

now I write to these register to have interrupt

  P1SEL &=  ~(1<<5); //set it to use GPIO
  P1IEN |= (1<<5); // interupt enable
  PICTL |= (1<<2); // interupt on falling edge
  P1IFG = 0x00; // clear interupt flag

and write this function

HAL_ISR_FUNCTION(halKeyPort1Isr , P1INT_VECTOR ){

P1IFG = 0x00;

}

I think function above is not right because it's not triggering

everything else is right and I test it