Re: Calling sprintf from interrupt context
- From: peter.mitsis@xxxxxxxxx
- Date: Wed, 20 Aug 2008 03:20:46 -0700 (PDT)
On Aug 20, 5:29 am, DeNNis <wuhua9...@xxxxxxxxx> wrote:
On Aug 20, 5:11 pm, pawar.shrik...@xxxxxxxxx wrote:
Hello,
It is safe to call printf, but some times it may messup execution of
tasks(As printf is having High priority),
So better not to use it from ISR, it may hit the performance.
For debugging purpose printf can be used.
Regards,
Shrikant
barkan.a...@xxxxxxxxx wrote:
Hello,
Is it safe to call sprintf from interrupt context?
I couldn't think of a reason why not, but on the other hand I'm not
sure what OS facilities it uses (perhaps it needs to allocate
memory?).
I'm using VxWorks 5.5.
Thanks.- Hide quoted text -
- Show quoted text -
if i want to get some log info in ISR ,while the printf can not be
used,what can i do?
how about the logMsg() ?
Regarding your question about logMsg()--yes, it is ISR safe.
Sparky.
.
- References:
- Calling sprintf from interrupt context
- From: barkan . alon
- Re: Calling sprintf from interrupt context
- From: pawar . shrikant
- Calling sprintf from interrupt context
- Prev by Date: Re: Calling sprintf from interrupt context
- Next by Date: VxWorks 5.5.1 with gcc 3.3 compatibility for MPC8548
- Previous by thread: Re: Calling sprintf from interrupt context
- Next by thread: Re: Calling sprintf from interrupt context
- Index(es):
Relevant Pages
|