File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ extern "C" {
34
34
* differs.
35
35
* @return true if interrupts are enabled, false otherwise
36
36
*/
37
- bool are_interrupts_enabled (void );
37
+ bool core_util_are_interrupts_enabled (void );
38
38
39
39
/** Mark the start of a critical section
40
40
*
Original file line number Diff line number Diff line change 29
29
static volatile uint32_t interrupt_enable_counter = 0 ;
30
30
static volatile bool critical_interrupts_disabled = false;
31
31
32
- bool are_interrupts_enabled (void )
32
+ bool core_util_are_interrupts_enabled (void )
33
33
{
34
34
#if defined(__CORTEX_A9 )
35
35
return ((__get_CPSR () & 0x80 ) == 0 );
@@ -40,7 +40,7 @@ bool are_interrupts_enabled(void)
40
40
41
41
void core_util_critical_section_enter ()
42
42
{
43
- bool interrupts_disabled = !are_interrupts_enabled ();
43
+ bool interrupts_disabled = !core_util_are_interrupts_enabled ();
44
44
__disable_irq ();
45
45
46
46
/* Save the interrupt disabled state as it was prior to any nested critical section lock use */
@@ -70,7 +70,7 @@ void core_util_critical_section_exit()
70
70
71
71
// FIXME
72
72
#ifndef FEATURE_UVISOR
73
- bool interrupts_disabled = !are_interrupts_enabled (); /* get the current interrupt disabled state */
73
+ bool interrupts_disabled = !core_util_are_interrupts_enabled (); /* get the current interrupt disabled state */
74
74
75
75
MBED_ASSERT (interrupts_disabled ); /* Interrupts must be disabled on invoking an exit from a critical section */
76
76
#else
You can’t perform that action at this time.
0 commit comments