Skip to content

Commit f98137a

Browse files
authored
Merge pull request #34 from 0xc0170/fix_logging_interrupt_safety
Fix logging interrupt safety
2 parents 1200728 + 9785159 commit f98137a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

TESTS/API/InterruptIn/InterruptIn.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ volatile bool result = false;
3333
void cbfn(void)
3434
{
3535
result = true;
36+
DEBUG_PRINTF("\t**** Interrupt Triggered!\n");
3637
}
3738

3839
// Template to check Falling edge and Rising edge interrupts.

ci_test_config.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@
1616
#ifndef CI_TEST_CONFIG_H
1717
#define CI_TEST_CONFIG_H
1818

19+
#include "utest_serial.h"
20+
1921
#if defined(MBED_CONF_APP_DEBUG_MSG) && (MBED_CONF_APP_DEBUG_MSG != 0)
20-
#define DEBUG_PRINTF(...) do { printf(__VA_ARGS__); } while(0)
22+
#define DEBUG_PRINTF(...) do { utest_printf(__VA_ARGS__); } while(0)
2123
#else
2224
#define DEBUG_PRINTF(...) {}
2325
#endif

0 commit comments

Comments
 (0)