Search found 4 matches

by marvin2k
Wed Apr 22, 2015 6:08 pm
Forum: Development and Feedback
Topic: osal-layer for Linux/POSIX?
Replies: 4
Views: 4272

Re: osal-layer for Linux/POSIX?

Why?

Creating functions with the OSAL api which wrapping the POSIX mutex and semaphores shouldn't be that hard. Writing some wrapper-code to abstract read/write/open/close on a filedescriptor into something like "channel" should also not be hard. And creating something similar to pthread...? This ...
by marvin2k
Wed Apr 22, 2015 3:05 pm
Forum: Development and Feedback
Topic: osal-layer for Linux/POSIX?
Replies: 4
Views: 4272

Re: osal-layer for Linux/POSIX?

Yes, I wanna use the HAL layer on Linux. No simulation, direct execution: Read/Write from /dev/ttyUSB?, mutex, counting semaphores, userspace threads.
by marvin2k
Wed Apr 22, 2015 9:32 am
Forum: Development and Feedback
Topic: osal-layer for Linux/POSIX?
Replies: 4
Views: 4272

osal-layer for Linux/POSIX?

Hi,

I wrote a rather complex multithreaded solution for my existing problem on a STM32F4. Works so far, is debugged and seems to be robust.

Now I need the same functionality for my Linux-System. Would be a shame to reimplement the structure for Linux/POSIX again -- and maintain two codebases. Are ...
by marvin2k
Tue Apr 14, 2015 2:28 pm
Forum: Development and Feedback
Topic: Makefiles improvements
Replies: 10
Views: 10506

Re: Makefiles improvements

Hi,

I need to create some extra targets (headers+libraries) prior to actually compiling the ChibiOS-based code. One hack I found to work is based on adding a `PRE_MAKE_ALL_RULE_HOOK`, similar to the (then renamed) `POST_MAKE_ALL_RULE_HOOK`.

Thoughts? Other ideas to achieve this? Any chances in ...