FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [October 2016 Threads]
Hey guys,
let's say I need to use a mutex in my driver layer and I don't want to use FreeRTOS calls that deep in my code (to keep the drivers independent from FreeRTOS).
Is there any side effect of using the ARM Cortex-M mutex instructions when using FreeRTOS:
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dai0321a/BIHEJCHB.html
I do use the FreeRTOS semaphores and mutex in my application layers, but I want to avoid using them at driver levels.
Thanks a lot!
cheers,
n
FreeRTOS mutexes are heavy as they use the queue code so can have any number of tasks blocked on giving or taking them. They do give you blocking ability and priority inheritance though. Do not use a spin lock on a Cortex instruction because lower priority tasks will be starved and you will get deadlock if a starved task has the lock.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.