22.8.1.2.1 Code
Copy-paste the following code to your user application:
system_interrupt_enter_critical_section();
if
(is_ready ==
true
) {
/* Do something in response to the global shared flag */
is_ready =
false
;
}
system_interrupt_leave_critical_section();