Re: regarding ISR
- From: "David T. Ashley" <dta@xxxxxxxx>
- Date: Mon, 4 Feb 2008 11:21:01 -0500
<aleemakhtar1@xxxxxxxxx> wrote in message
news:b140416d-2767-40e2-b8f6-d3d8e91ea71f@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
can i allocate dynamic memory in ISR ?? If yes wat shd be the
precautions i need to take care ??
In most systems, the answer is NO.
Reasons:
a)Functions such as malloc() are typically not re-entrant.
b)The allocation would take too long (defeats the rationale of an ISR).
Generally, knowing what you may and may not do from within an ISR is one of
the really important design rules of a system ...
--
David T. Ashley (dta@xxxxxxxx)
http://www.e3ft.com (Consulting Home Page)
http://www.dtashley.com (Personal Home Page)
http://gpl.e3ft.com (GPL Publications and Projects)
.
- Prev by Date: Re: asm volatile
- Next by Date: Re: Task switching in the case of the bus congestion
- Previous by thread: Task switching in the case of the bus congestion
- Next by thread: Re: regarding ISR
- Index(es):
Relevant Pages
|