From fc6ae4ba0f997da7f810df130c2d6de4d30eea1d Mon Sep 17 00:00:00 2001 From: Anna Bridge Date: Fri, 10 Jun 2016 17:50:14 +0100 Subject: [PATCH] Update utest to use mbed-os version of critical_section. This is an internal change only. --- frameworks/utest/mbed-utest-shim.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frameworks/utest/mbed-utest-shim.cpp b/frameworks/utest/mbed-utest-shim.cpp index db664882e8..96a4ba5edf 100644 --- a/frameworks/utest/mbed-utest-shim.cpp +++ b/frameworks/utest/mbed-utest-shim.cpp @@ -16,17 +16,17 @@ */ #include "mbed.h" +#include "critical.h" #include "utest/utest.h" using namespace utest::v1; void utest_v1_enter_critical_section(void) { - // will replaced by CriticalSectionLock - __disable_irq(); + core_util_critical_section_enter(); } void utest_v1_leave_critical_section(void) { - __enable_irq(); + core_util_critical_section_exit(); }