Author Topic: Recommendations for C RTOS design pattern book  (Read 4611 times)

0 Members and 1 Guest are viewing this topic.

Offline HarvsTopic starter

  • Super Contributor
  • ***
  • Posts: 1202
  • Country: au
Recommendations for C RTOS design pattern book
« on: May 18, 2014, 02:35:29 am »
As the title suggests, got any recommendations for good books of C design patterns for RTOS based embedded systems?

I'm just getting into using FreeRTOS, I've read their books on how to use it, now I'm just looking for further reading on how best to use the RTOS tools available in the broader sense of building an application.
 

Offline Kremmen

  • Super Contributor
  • ***
  • Posts: 1289
  • Country: fi
Re: Recommendations for C RTOS design pattern book
« Reply #1 on: May 20, 2014, 11:56:46 am »
I was almost sure i had something in my shelf but turned out not to be the case exactly. I have the first item in this link and while it is a good book it does not address your question directly and it may be a bit much for what you were specifically asking.
http://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Daps&field-keywords=Model-Based%20Engineering%20of%20Embedded%20Real-Time%20Systems

That book is relevant to the topic however since in my opinion one of the keys to successful application of design principles such as use of an RTOS, is modeling. You should model the problem and then model the solution to match the problem. Elements of the solution model contain the features of the RTOS in use but it is important to realize that just throwing an RTOS at a problem is not enough - it must also be applied in a way that makes sense. Often previously invented design patterns are helpful just as you note.
Nothing sings like a kilovolt.
Dr W. Bishop
 

Offline HarvsTopic starter

  • Super Contributor
  • ***
  • Posts: 1202
  • Country: au
Re: Recommendations for C RTOS design pattern book
« Reply #2 on: May 20, 2014, 12:34:29 pm »
Elements of the solution model contain the features of the RTOS in use but it is important to realize that just throwing an RTOS at a problem is not enough - it must also be applied in a way that makes sense.

Thanks for the link, it's available at the library so I'll pick it up for a read.
 

Offline Q-Kernel

  • Contributor
  • Posts: 13
Re: Recommendations for C RTOS design pattern book
« Reply #3 on: May 20, 2014, 05:59:03 pm »
As the title suggests, got any recommendations for good books of C design patterns for RTOS based embedded systems?

Have a look at the user guide of Q-Kernel even if you don't want to use this RTOS. It describes things like Publish/Subscribe mechanism how to prevent global variables and in general how to accomplish "High Cohesion, Low Coupling".
You can download the user guide and all source code at the QuasarSoft website.

 

Offline HarvsTopic starter

  • Super Contributor
  • ***
  • Posts: 1202
  • Country: au
Re: Recommendations for C RTOS design pattern book
« Reply #4 on: May 21, 2014, 12:47:13 am »
user guide of Q-Kernel

Thanks, it's not really what I was looking for though.  FreeRTOS has a somewhat similar user guide with basic descriptions of some patterns.

When I was learning C# (not that you ever really stop), I was able to pick up full text books that fully described not just the basic overview of patterns, but the indepth implications of each pattern and how they should and shouldn't be used.  This was extremely helpful in getting a deeper understanding.   I was hoping for something like that for RTOS on *microcontrollers.

*like M3/M4 sized uCs.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf