Search found 260 matches
- Mon Sep 25, 2017 5:01 am
- Forum: Small Change Requests
- Topic: chEvtAddEvents(), I/S class versions please Topic is solved
- Replies: 4
- Views: 1512
chEvtAddEvents(), I/S class versions please Topic is solved
It would be good to have an S class versions of the chEvtAddEvents function. I usually use it in a context where I'm already in a chSysLock() state.
- Mon Sep 25, 2017 4:08 am
- Forum: Development and Feedback
- Topic: GenericQueue with counter?
- Replies: 8
- Views: 2651
Re: GenericQueue with counter?
Just want to chime in with another vote for lock-less single producer single consumer queues. I was working on a high performance DSP application (on a relatively slow) processor a while back, and lock-less queues saved the day (given the assumption of a single producer, single consumer) along with ...
- Wed Sep 20, 2017 4:40 pm
- Forum: ChibiOS/RT
- Topic: Combine mailbox with events
- Replies: 8
- Views: 2494
Re: Combine mailbox with events
Giovanni wrote:From here: http://www.chibios.org/dokuwiki/doku.ph ... cles:start
"Articles" from the home page.
Giovanni
Thanks Giovanni!
- Tue Sep 19, 2017 4:29 pm
- Forum: ChibiOS/RT
- Topic: Combine mailbox with events
- Replies: 8
- Views: 2494
Re: Combine mailbox with events
I found this: http://www.chibios.org/dokuwiki/doku.php?id=chibios:kb:atomic , which describes it pretty well. What I can't find however, is where is that article linked from? I looked in the book (http://www.chibios.org/dokuwiki/doku.php?id=chibios:book:start), but couldn't find it there. From the l...
- Tue Sep 19, 2017 4:18 pm
- Forum: ChibiOS/RT
- Topic: Combine mailbox with events
- Replies: 8
- Views: 2494
Re: Combine mailbox with events
The operation are *not* atomic if written normally, you need to create an atomic construct this way: chSysLock(); chEvtSignalI(); chMBPostS(); chSysUnlock(); Note the I and the S after function names. You can have several I-class functions and a single final S-class must be present which reschedule...
- Tue Sep 19, 2017 3:03 pm
- Forum: ChibiOS/RT
- Topic: Combine mailbox with events
- Replies: 8
- Views: 2494
Re: Combine mailbox with events
Hi, You can wait for just events: send an event when posting into the mailbox, the two operations will be atomic. On the thread side wait for the two events (with timeout), when the mailbox event it received then "fetch" messages using TIME_IMMEDIATE until the mailbox is empty, this makes...
- Tue Sep 05, 2017 6:21 pm
- Forum: Development and Feedback
- Topic: M4 FP register stacking/unstacking during context switch
- Replies: 2
- Views: 1432
Re: M4 FP register stacking/unstacking during context switch
Thanks for the reply. If I end up making any changes, I'll be sure to submit them for wider review. Here's a couple of good discussions I've found on the topic for those interested: Cortex-M4(F) Lazy Stacking and Context Switching Application Note 298 http://infocenter.arm.com/help/index.jsp?topic=/...
- Tue Sep 05, 2017 2:56 am
- Forum: Development and Feedback
- Topic: M4 FP register stacking/unstacking during context switch
- Replies: 2
- Views: 1432
M4 FP register stacking/unstacking during context switch
I was looking thru the ChibiOS and ARM documentation trying to figure out the interrupt latency, and context switch time - and I ran across this: http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dai0298a/index.html When dealing with systems where the FPU is used by multiple tasks, the con...
- Fri Aug 11, 2017 6:46 pm
- Forum: Development and Feedback
- Topic: CMSIS-RTOS2
- Replies: 2
- Views: 971
Re: CMSIS-RTOS2
Thanks for taking a quick look at it! I appreciate your feedback.
- Fri Aug 11, 2017 1:14 am
- Forum: Development and Feedback
- Topic: CMSIS-RTOS2
- Replies: 2
- Views: 971
CMSIS-RTOS2
Is there are port for CMSIS-RTOS2 coming out soon?