[riot-commits] [RIOT-OS/RIOT] c62803: atmega_common: disable interrupts prior to rebooti...

Francisco Acosta fco.ja.ac at gmail.com
Fri Jan 6 15:29:37 CET 2017


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: c62803d243ff3f557fae7895529de679b5de5952
      https://github.com/RIOT-OS/RIOT/commit/c62803d243ff3f557fae7895529de679b5de5952
  Author: Jon Thacker <thacker.jon at gmail.com>
  Date:   2016-12-20 (Tue, 20 Dec 2016)

  Changed paths:
    R cpu/atmega1281/reboot_arch.c
    R cpu/atmega2560/reboot_arch.c
    R cpu/atmega328p/reboot_arch.c
    A cpu/atmega_common/reboot_arch.c

  Log Message:
  -----------
  atmega_common: disable interrupts prior to rebooting

If the watchdog is being reset in another thread, then
the reboot will never take place. This commit disables interrupts prior
to setting the watchdog timer to 250ms. This functionallity was common
to all Atmega CPUs, so it was moved to atmega_common.


  Commit: 7b2dc4ff5d99e60c22da0dfc9fdecd19a178deb3
      https://github.com/RIOT-OS/RIOT/commit/7b2dc4ff5d99e60c22da0dfc9fdecd19a178deb3
  Author: Francisco Acosta <fco.ja.ac at gmail.com>
  Date:   2017-01-06 (Fri, 06 Jan 2017)

  Changed paths:
    R cpu/atmega1281/reboot_arch.c
    R cpu/atmega2560/reboot_arch.c
    R cpu/atmega328p/reboot_arch.c
    A cpu/atmega_common/reboot_arch.c

  Log Message:
  -----------
  Merge pull request #6252 from jthacker/avr_reboot_disable_interrupts

atmega_common: disable interrupts prior to rebooting


Compare: https://github.com/RIOT-OS/RIOT/compare/1ae699875250...7b2dc4ff5d99


More information about the commits mailing list