isuruceanu/thulog — pull request #3 by grajdeanserghei (2014-10-24 20:20:28+00:00)
Title: sleep mode bug fixed

The sleep_cpu() function was missing, so actually the MC never enters sleep mode. sleep_enable from line 88 should be removed because the SE bit must be set just before calling SLEEP instruction.

The code from WatchDog interrupt routine was moved to main WHILE just to make the code more readable. Also interrupt routines must be as short as possible.