STM32H7A3ZI __enable_interrupt() , __disable_interrupt() and __get_interrupt_state() function defination not found error in IAR IDE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-04-11 2:41 AM
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
- Labels:
-
IAR
-
Interrupt
-
STM32H7 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-04-11 4:54 AM
What source are you seeing these in?​
Grep source, likely in an include file.
Check for CMSIS equivalents.​
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-04-11 5:46 AM
Aren't they called __enable_irq/__disable_irq?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-04-11 5:52 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-04-11 5:58 AM
>>I am looking in Source and header both the files.
Of what project example?
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-04-11 5:58 AM
You could also search github for possible implementations.
https://github.com/search?q=__get_interrupt_state&type=code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-04-11 6:04 AM
Below is typical sequence of the calling.
iIrptState = __get_interrupt_state();
__disable_interrupt();
/// Crtiical region code
__set_interrupt_state(iIrptState);
I am trying to port the given logic for STM32 in IAR. The functions looks like internal function of IAR (Toolchain).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-04-11 6:49 AM
Ok, well sounds like you're taking some code from somewhere else. Perhaps work with the people that wrote it to better understand where those came from, or convert/wrapper with more ARM/CMSIS centric methods to achieve the same.
If they are specific or intrinsic to IAR, or some RTOS implementation, I'm sure they are documented, and supported by include files that IAR would supply, the installation of which you could search/grep to find supporting Include Files, and Libraries.
Up vote any posts that you find helpful, it shows what's working..
