Skip to content

Commit 21b4f03

Browse files
LMESTMadbridge
authored andcommitted
test i2c asynch: Remove printf usage from interrupt context
The cbmaster_done function is a callback which will be called from the asynch I2C interrupt handler. Calling to printf from this context sometimes lead to missing interrupts on the slave side. This was at least encountered on STM32F3 MCUs.
1 parent 2cf044d commit 21b4f03

File tree

1 file changed

+0
-1
lines changed
  • features/unsupported/tests/mbed/i2c_master_slave_asynch

1 file changed

+0
-1
lines changed

features/unsupported/tests/mbed/i2c_master_slave_asynch/main.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ I2CSlave slave(D3, D6);
4545
volatile int why;
4646
volatile bool master_complete = false;
4747
void cbmaster_done(int event) {
48-
printf("cbmaster_done\n");
4948
master_complete = true;
5049
why = event;
5150
}

0 commit comments

Comments
 (0)