Skip to main content
Hiren Bhuva
Associate III
April 11, 2022
Question

STM32H7A3ZI __enable_interrupt() , __disable_interrupt() and __get_interrupt_state() function defination not found error in IAR IDE

  • April 11, 2022
  • 3 replies
  • 3223 views

Hello Community,

I am getting no defination found error for below function for STM32H7A3ZI MCU in IAR IDE.

  • __get_interrupt_state()
  • __set_interrupt_state()
  • __enable_interrupt()
  • __disable_interrupt()

Can anyone help to understand the problem.

Thanks in Advance,

Hiren Bhuva

This topic has been closed for replies.

3 replies

Tesla DeLorean
Guru
April 11, 2022

What source are you seeing these in?​

Grep source, likely in an include file.

Check for CMSIS equivalents.​

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
TDK
Super User
April 11, 2022

Aren't they called __enable_irq/__disable_irq?

"If you feel a post has answered your question, please click ""Accept as Solution""."
Hiren Bhuva
Associate III
April 11, 2022

Hi @Community member​  and @TDK​ ,

Thanks for quick reply.

@Community member​ , I am looking in Source and header both the files.

@TDK​ , Yes, They are using __enable_irq() and __disable_irq(). I am not sure weather they are same or different.

If they are same, then can I use __getPRIMASK() and __setPRIMASK() functions inplace of __get_interrupt_state() and __set_interrupt_state()?

Thanks,

Hiren Bhuva

Tesla DeLorean
Guru
April 11, 2022

>>I am looking in Source and header both the files.

Of what project example?

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..