Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
marlesus
PostPosted: Jun 21, 2010 - 09:31 PM
Newbie


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?
 
 View user's profile Send private message  
Reply with quote Back to top
marlesus
PostPosted: Jun 22, 2010 - 07:12 AM
Newbie


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?
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Jun 22, 2010 - 10:11 AM
10k+ Postman


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()

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
marlesus
PostPosted: Jun 23, 2010 - 07:13 AM
Newbie


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?
 
 View user's profile Send private message  
Reply with quote Back to top
marlesus
PostPosted: Jun 24, 2010 - 07:55 PM
Newbie


Joined: Jul 09, 2008
Posts: 10


Nobody? Sad
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Jun 28, 2010 - 10:57 AM
10k+ Postman


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.

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits