Search found 260 matches

by faisal
Wed Oct 11, 2017 1:27 pm
Forum: Bug Reports
Topic: ChibiOS 17.6.2 chmemcore.h: chCoreAlloc Topic is solved
Replies: 4
Views: 1133

Re: ChibiOS 17.6.2 chmemcore.h: chCoreAlloc Topic is solved

Giovanni wrote:Hi,

Fixed as bug #896.

Giovanni


Thank you Giovanni! Will you include some unit tests as well for chCoreAlloc and related code?
by faisal
Tue Oct 10, 2017 11:42 pm
Forum: Bug Reports
Topic: ChibiOS 17.6.2 chmemcore.h: chCoreAlloc Topic is solved
Replies: 4
Views: 1133

ChibiOS 17.6.2 chmemcore.h: chCoreAlloc Topic is solved

Shouldn't chCoreAlloc() call chCoreAllocAlignedWithOffset, instead of the I-class function chCoreAllocAlignedWithOffsetI . This sounds pretty fundamental ... I haven't looked at the tests yet that are run before each release, but any call of this outside a lock should should have triggered an assert...
by faisal
Mon Oct 09, 2017 3:00 pm
Forum: Small Change Requests
Topic: STM32 UART LLD, character match interrupt Topic is solved
Replies: 13
Views: 3873

Re: STM32 UART LLD, character match interrupt Topic is solved

I quite like this feature (as I also use COBS-ZP/ZE). I have an NUCLEO-F7 on the way, I could probably add the missing parts if no one feels up to the task. Cool, check out my example code in the first post. I actually have a ring buffer *of* COBS frames (like 5 framed deep) that the interrupt push...
by faisal
Mon Oct 09, 2017 2:36 pm
Forum: Small Change Requests
Topic: STM32 UART LLD, character match interrupt Topic is solved
Replies: 13
Views: 3873

Re: STM32 UART LLD, character match interrupt Topic is solved

That is a really useful feature! Which MCUs has it? I could only find it on the STM32F7s. Could it still be integrated if it is not a generic feature, Giovanni? Many MCUs support the character match interrupt. Im currently using it on the stm32L4 series. Works like a charm, and is almost necessary ...
by faisal
Fri Oct 06, 2017 9:49 pm
Forum: Small Change Requests
Topic: Guarded Memory pool which allows for dynamic allocation/growth Topic is solved
Replies: 1
Views: 695

Guarded Memory pool which allows for dynamic allocation/growth Topic is solved

#define GUARDEDMEMORYPOOL_DECL(name, size) could also include an allocator, as does MEMORYPOOL_DECL(name, size, provider). But in the case of a guarded memory pool, the size parameter restricts the growth of the memory pool - unlike with a regular memory pool.
by faisal
Fri Oct 06, 2017 9:41 pm
Forum: Small Change Requests
Topic: STM32 UART LLD, character match interrupt Topic is solved
Replies: 13
Views: 3873

STM32 UART LLD, character match interrupt Topic is solved

The character match interrupt is very useful for efficient packetized communications over uart. For example, if you use COBS encoding (https://en.wikipedia.org/wiki/Consistent_Overhead_Byte_Stuffing), you can enable the character match interrupt (CR1->CMIE) for a 0 (which is the escaped character in...
by faisal
Mon Oct 02, 2017 10:31 pm
Forum: Small Change Requests
Topic: chEvtAddEvents(), I/S class versions please Topic is solved
Replies: 4
Views: 1272

Re: chEvtAddEvents(), I/S class versions please Topic is solved

Another one: chEvtGetAndClearEvents, I class version please :) . eventmask_t chEvtGetAndClearEventsI(eventmask_t events) { eventmask_t m; m = currp->epending & events; currp->epending &= ~events; return m; } /** * @brief Clears the pending events specified in the events mask. * * @param[in] ...
by faisal
Wed Sep 27, 2017 1:35 am
Forum: Development and Feedback
Topic: [NOTE] Ideas for RT 5 and/or NIL 3
Replies: 11
Views: 5113

Re: [NOTE] Ideas for RT 5 and/or NIL 3

I am introducing a "factory" mechanism for both RT and NIL, it allows to fabricate objects like buffers, semaphores, mutexes, mailboxes etc and give them a name. The objects have a reference counter so the memory is freed when all object users have released their reference. This will allo...
by faisal
Wed Sep 27, 2017 1:30 am
Forum: Development and Feedback
Topic: [NOTE] Ideas for RT 5 and/or NIL 3
Replies: 11
Views: 5113

Re: [NOTE] Ideas for RT 5 and/or NIL 3

Memory pool object chain: Basically a dynamically sizable memory object, which can grow by allocating and appending new memory pool objects to a linked list, and shrink by deallocating memory pool objects and deleting them from the list. This is useful for all sorts of applications. Some helper meth...

Go to advanced search