Author Topic: Embedded C Book Recommendation  (Read 18836 times)

0 Members and 1 Guest are viewing this topic.

Offline Otatiaro

  • Regular Contributor
  • *
  • Posts: 85
Re: Embedded C Book Recommendation
« Reply #50 on: February 17, 2013, 07:40:52 pm »
Hello,

For task switching I always go for the swap stack pointer and return approach.

Well, guess what is in the stack ?

To change tasks you just manipulates pointers (even if they are code pointers so kind of functors), but when you start a task, you most proably need to use the functor (the first address you'll put in the stack to branch to it on interrupt return).

Thomas.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf