Not applicable
Mar 08, 2014
05:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 08, 2014
05:39 AM
I need to protect a routine from re-entrancy, which may be called from the main loop and from ISRs. My routine itself is dependent on the services of an ISR (but this ISR does not try to call my routine). We are not using an RTOS.
My question: Is there something like a semaphore or mutex or spinlock available from the DAVE Apps/libraries? Or a test-and-set macro?
Thanks.
My question: Is there something like a semaphore or mutex or spinlock available from the DAVE Apps/libraries? Or a test-and-set macro?
Thanks.
Labels
- Labels:
-
ispn:17026:1:0
-
l1:408:1:0
-
l2:741:1:0
-
l3:766:1:0
- Tags:
- IFX
4 Replies
Not applicable
Mar 09, 2014
11:55 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 09, 2014
11:55 PM
Hi,
I think checking the respective interrupt flags will do since every interrupt (NVIC) has its corresponding flag.
BR,
Zain
I think checking the respective interrupt flags will do since every interrupt (NVIC) has its corresponding flag.
BR,
Zain
Not applicable
Mar 10, 2014
04:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 10, 2014
04:03 AM
If two ISRs are active, wouldn't they block each other and nothing would run? Also, there isn't an interrupt flag associated with the main loop.
Mar 10, 2014
03:30 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 10, 2014
03:30 PM
I have been using the CMSIS _LDREX() and _STREX() calls to do this
Not applicable
Mar 14, 2014
12:25 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 14, 2014
12:25 PM
Thanks! These look like they will work great. Haven't tried yet, but will as soon as I can.