This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to modify the register AFIO_EXTICR4

Hello,

I am working with the NUCLEO-F103RB board and I am using the USER pushbutton on PC13 to create an interrupt.


I would like to modify the AFIO_EXTICR4 register to force PC13 as in the screenshot below:

I write this code line :

AFIO->EXTICR = AFIO->EXTICR | AFIO_EXTICR4_EXTI13_PC;

The IDE indicates an error !

Can you tell me the correct syntax to modify this register.


Thank you very mutch for your help.


Best regrads

Marc

Parents
  • Hello Milorad,

    Thank you very much for your answer and I also found an answer by searching on the Internet in a tutorial on Youtube.

    I work with two NUCLEO cards
    NUCLEO-F103RB with this parameters :

    Which allow me this mode of display of the peripherals :


    NUCLEO-L476RG with this parameters :

    Which does not allow me the same mode of display.
    Do you have a solution to be able to visualize the peripherals as with the NUCLEO-F103RB ?

    Best regards

    Marc

Reply
  • Hello Milorad,

    Thank you very much for your answer and I also found an answer by searching on the Internet in a tutorial on Youtube.

    I work with two NUCLEO cards
    NUCLEO-F103RB with this parameters :

    Which allow me this mode of display of the peripherals :


    NUCLEO-L476RG with this parameters :

    Which does not allow me the same mode of display.
    Do you have a solution to be able to visualize the peripherals as with the NUCLEO-F103RB ?

    Best regards

    Marc

Children