Hi, Can I use taskENTERCRITICALFROM_ISR() in function that is NOT called from ISR? Will critical section work properly (preemption protection) in this case? Best Regards Lukasz
Which port are you using?
For that port the answer is ‘yes’ you can use the macros outside an ISR. Note the macro returns the current interrupt status, and the value returned must then be passed into a matching call to taskEXITCRITICALFROM_ISR().
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.