leomil72 / leOS2

leOS2 is a little interrupt-driven scheduler to execute little routines in background - For Arduino boards and Atmel microcontrollers
29 stars 7 forks source link

pause/restart functionality added to the scheduler #1

Closed kontza closed 11 years ago

kontza commented 11 years ago

Hi,

Please ignore the formatting diffs, they originate from code editor's autoformatter.

The real change I made was to add two functions. pauseScheduler(): puts the scheduler on hold by disabling WDT interrupts restartScheduler(): re-enables WDT interrupts so that scheduling can continue as normal

Why? I thought that it would be nice to prevent WDT ISR from waking up the system from sleep. And after waking up from a sleep period, what would be nicer than to re-enable WDT interrupts to have scheduling running again.

Great work with leOS2, by the way!

leomil72 commented 11 years ago

Sorry but I've implemented these methods in version 2.2.0, that I've put online a couple of days ago. Maybe you've forked the repo just before I made the changes.

kontza commented 11 years ago

Indeed that's the case. I forked the repo few days ago, before you added halt/restart.

Keep up the good work!

On Tue, Apr 2, 2013 at 5:55 PM, leomil72 notifications@github.com wrote:

Sorry but I've implemented these methods in version 2.2.0, that I've put online a couple of days ago. Maybe you've forked the repo just before I made the changes.

— Reply to this email directly or view it on GitHubhttps://github.com/leomil72/leOS2/pull/1#issuecomment-15780012 .

jussi

leomil72 commented 11 years ago

BTW I've seen that the README file is still reporting 2.1.1 as the latest release ;-) I've fixed it.

kontza commented 11 years ago

Ok, good to know :)

On Wed, Apr 3, 2013 at 5:03 PM, leomil72 notifications@github.com wrote:

BTW I've seen that the README file is still reporting 2.1.1 as the latest release ;-) I've fixed it.

— Reply to this email directly or view it on GitHubhttps://github.com/leomil72/leOS2/pull/1#issuecomment-15838323 .

jussi