Associate II
April 8, 2022
Solved
Timing to be reflected __disable_irq() and __enable_irq()
- April 8, 2022
- 4 replies
- 3088 views
We make below code.
The variable a is written from both main function and interrupt function.
When accessing variable a with the main function to realize exclusive control, interrupt disable and enable (__disable_irq(), __enable_irq()) are used.
How long does it take from the execution of the interrupt disable function to the reflection on the CPU at this time?
Or is there a mechanism to access the variable a after the interrupt disable is reflected in the structure of the CPU?
If there is a manual regarding the behavior after executing the interrupt prohibition function, please let me know.