| Author |
Message |
|
|
Posted: Jun 21, 2010 - 09:31 PM |
|

Joined: Jul 09, 2008
Posts: 10
|
|
| Hi! I have a project that implies creating an access demanding procedure from a binary semaphore that manages the access to a common resource (all imbricated in a real-time kernel). Can anyone help me with some examples and/or indications in creating such a procedure? I have attached the application that forms the kernel in .asm. Anyone who has worked with something similar and can help me, please? |
|
|
| |
|
|
|
|
|
Posted: Jun 22, 2010 - 07:12 AM |
|

Joined: Jul 09, 2008
Posts: 10
|
|
| I need help here, please! Anyone with some examples of binary semaphores implemented in AVR Studio (assembler language), please? |
|
|
| |
|
|
|
|
|
Posted: Jun 22, 2010 - 10:11 AM |
|


Joined: Jul 18, 2005
Posts: 34714
Location: (using avr-gcc in) Finchingfield, Essex, England
|
|
| Read the implementation description for FreeRTOS and look at it's source code for a reference of how to implement sem4's - in particular see xQueueCreateMutex() |
_________________
|
| |
|
|
|
|
|
Posted: Jun 23, 2010 - 07:13 AM |
|

Joined: Jul 09, 2008
Posts: 10
|
|
| Yes, I did read that, but I need some binary semaphore implementation in AVR Assembler. Nobody worked with this before? |
|
|
| |
|
|
|
|
|
Posted: Jun 24, 2010 - 07:55 PM |
|

Joined: Jul 09, 2008
Posts: 10
|
|
Nobody?  |
|
|
| |
|
|
|
|
|
Posted: Jun 28, 2010 - 10:57 AM |
|


Joined: Jul 18, 2005
Posts: 34714
Location: (using avr-gcc in) Finchingfield, Essex, England
|
|
Well as you have had no other replies I'd suggest you work down this list of RTOS':
http://www.avrfreaks.net/index.php?name ... highlight=
and download any that have source available and see what their solution to the mutex implementation is.
BTW I wasn't totally sure why you felt it had to be implemented in Asm - in an RTOS is generally just the core task switching stuff that needs to be done in Asm and the rest can be done in C. |
_________________
|
| |
|
|
|
|
|