Skip to content

Commit d381918

Browse files
authored
Merge pull request #294 from adbridge/master
Update utest to use mbed-os version of critical_section.
2 parents d88c819 + fc6ae4b commit d381918

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

frameworks/utest/mbed-utest-shim.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@
1616
*/
1717

1818
#include "mbed.h"
19+
#include "critical.h"
1920
#include "utest/utest.h"
2021

2122
using namespace utest::v1;
2223

2324
void utest_v1_enter_critical_section(void)
2425
{
25-
// will replaced by CriticalSectionLock
26-
__disable_irq();
26+
core_util_critical_section_enter();
2727
}
2828

2929
void utest_v1_leave_critical_section(void)
3030
{
31-
__enable_irq();
31+
core_util_critical_section_exit();
3232
}

0 commit comments

Comments
 (0)