AnsweredAssumed Answered

Is Event (ISR routine) thread-safe?

Question asked by David XY Zhou on Apr 15, 2016
Latest reply on Apr 18, 2016 by David XY Zhou

Hi,

I have a general threading question: (K60 MCU)

Let say SPI module is setup and enabled with interrupt. The interrput is serviced through module Event:

void SM1_OnBlockSent(LDD_TUserData *UserDataPtr) {

      //

     iSharedVariableCmdSentDone=1;

}

is the accessing of the iSharedVariableCmdSentDone thread-safe in the SM1_OnBlockSent() ?

Thank you,

David Zhou

Outcomes