FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [October 2011 Threads] Software Timers - xTimerIsTimerActive and ISRPosted by Martin Velek on October 28, 2011 Hello,
can I call the function xTimerIsTimerActive() from ISR? I am using ARM7 port (LPC2478). It calls taskENTER_CRITICAL() and taskEXIT_CRITICAL(). I am not sure if these functions are allowed to call from ISR. I realize that the function ..Active() has not ISR suffix but e.g. pvTimerGetTimerID() has not it also, yet can be called.
Thank you for your help.
Regards Martin
RE: Software Timers - xTimerIsTimerActive and ISRPosted by Richard on October 28, 2011 No - the function cannot be called from an ISR (on an ARM7 port at least), for the reason you guessed.
Specifically for that port, if you wanted an ISR safe version, just create a version that does not have the ENTER/EXIT critical macros, but keep using the default version when outside of an ISR.
Regards.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|