cancel
Showing results for 
Search instead for 
Did you mean: 

Privilege for Interrupts

ColaChugger
Associate II

Hi,

I want to deactivate all interrupts during a short period.

I'm using

__disable_irq();

however, it says, that this can only be used in privilege mode. If I use this function my board crashes. I want to look up the privilege level, but the RM at page 3055 is not clear enough, how I can access those bits. can someone please help.

1 REPLY 1

Perhaps ST's Programming Manual would be a better source, or even ARM's Technical Reference Manual?

Look at how some of the RTOS (FreeRTOS or CMSIS RTOS, or whatever) manage such things, or perhaps better yet semaphore/mutex methods of protecting stuff and arbitrating access to resources.

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