Add core_util_ prefix to are_interrupts_enabled() function.

For consistency with other exposed functions from this file, core_util_
prefix should be added.
pull/1883/head
Anna Bridge 2016-07-01 15:08:31 +01:00
parent 2292794385
commit 329f8a10dc
2 changed files with 4 additions and 4 deletions

View File

@ -34,7 +34,7 @@ extern "C" {
* differs.
* @return true if interrupts are enabled, false otherwise
*/
bool are_interrupts_enabled(void);
bool core_util_are_interrupts_enabled(void);
/** Mark the start of a critical section
*

View File

@ -29,7 +29,7 @@
static volatile uint32_t interrupt_enable_counter = 0;
static volatile bool critical_interrupts_disabled = false;
bool are_interrupts_enabled(void)
bool core_util_are_interrupts_enabled(void)
{
#if defined(__CORTEX_A9)
return ((__get_CPSR() & 0x80) == 0);
@ -40,7 +40,7 @@ bool are_interrupts_enabled(void)
void core_util_critical_section_enter()
{
bool interrupts_disabled = !are_interrupts_enabled();
bool interrupts_disabled = !core_util_are_interrupts_enabled();
__disable_irq();
/* 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()
// FIXME
#ifndef FEATURE_UVISOR
bool interrupts_disabled = !are_interrupts_enabled(); /* get the current interrupt disabled state */
bool interrupts_disabled = !core_util_are_interrupts_enabled(); /* get the current interrupt disabled state */
MBED_ASSERT(interrupts_disabled); /* Interrupts must be disabled on invoking an exit from a critical section */
#else