| Author |
Message |
naresh850
Joined: 09 Jun 2006 Posts: 138 Helped: 1
|
04 Apr 2008 7:54 Can ISR call semaphore? |
|
|
|
Hello
Can ISR call semaphore?
Regards,
NP
|
|
| Back to top |
|
 |
ariyan
Joined: 24 Aug 2006 Posts: 71 Helped: 2
|
04 Apr 2008 10:32 Can ISR call semaphore? |
|
|
|
You can't call an semaphore from within an ISR. Taking a semaphore is a blockable operation. The rule of thumb is, when in an interrupt do not block.
ISR can only send Messages and can only release a semaphore.
|
|
| Back to top |
|
 |
intrepido
Joined: 04 May 2004 Posts: 19
|
08 Apr 2008 13:49 Re: Can ISR call semaphore? |
|
|
|
An ISR can do only non-blocking calls.
I.E.
An ISR can put an event into mail box without blocking.
NOTE.
Is very important for an ISR to spent small time to complete her operations.
|
|
| Back to top |
|
 |
ivar4ever
Joined: 12 Jun 2006 Posts: 309 Helped: 72 Location: India
|
14 Apr 2008 13:12 Re: Can ISR call semaphore? |
|
|
|
| it is not advisable to call semaphones from ISR's
|
|
| Back to top |
|
 |
xyz99002
Joined: 31 May 2001 Posts: 35
|
25 Apr 2008 4:53 Re: Can ISR call semaphore? |
|
|
|
| In most cases you can raise a semaphore from ISR but can not pend on it. Check your RTOS documentation.
|
|
| Back to top |
|
 |