Rules | Recent posts | topic RSS | Search | Register  | Log in

Can ISR call semaphore?

 
Post new topic  Reply to topic    EDAboard.com Forum Index -> Embedded Systems and Real-Time OS
Author Message
naresh850



Joined: 09 Jun 2006
Posts: 138
Helped: 1


Post04 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


Post04 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


Post08 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


Post14 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


Post25 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
Post new topic  Reply to topic    EDAboard.com Forum Index -> Embedded Systems and Real-Time OS
Page 1 of 1 All times are GMT + 2 Hours


Abuse
Administrator
Moderators
topic RSS 
sitemap