Skip to content
Snippets Groups Projects
Commit c842d4f6 authored by Martine Lenders's avatar Martine Lenders
Browse files

Merge pull request #3905 from OlegHahm/avr_panic_arch

atmega: added panic function
parents 8a554abf 04bda78e
No related branches found
No related tags found
No related merge requests found
/*
* Copyright (C) 2015 INRIA
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @ingroup cpu_atmega_common
* @{
*
* @file
* @brief Crash handling functions implementation for ATmega MCUs
*
* @author Oliver Hahm <oliver.hahm@inria.fr>
*/
#include <avr/wdt.h>
#include "lpm.h"
void panic_arch(void)
{
wdt_disable();
#ifdef DEVELHELP
/* enter infinite loop, into deepest possible sleep mode */
while (1) {
lpm_set(LPM_OFF);
}
#endif
}
......@@ -10,8 +10,6 @@ RIOTBASE ?= $(CURDIR)/../..
BOARD_INSUFFICIENT_MEMORY := airfy-beacon nrf51dongle nrf6310 pca10000 pca10005 nucleo-f334 \
spark-core stm32f0discovery yunjia-nrf51822
BOARD_BLACKLIST := arduino-mega2560 # panic_arch not defined
ifeq (,$(SLIP_UART))
# set default (last available UART)
SLIP_UART="(UART_NUMOF-1)"
......
......@@ -12,7 +12,7 @@ BOARD_INSUFFICIENT_MEMORY := airfy-beacon chronos msb-430 msb-430h nrf51dongle \
stm32f0discovery telosb wsn430-v1_3b wsn430-v1_4 \
yunjia-nrf51822 z1
BOARD_BLACKLIST := arduino-mega2560 spark-core
BOARD_BLACKLIST := spark-core
# arduino-mega2560: unknown error types (e.g. -EBADMSG)
# Include packages that pull up and auto-init the link layer.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment