mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #3905 from OlegHahm/avr_panic_arch
atmega: added panic function
This commit is contained in:
commit
c842d4f6d5
32
cpu/atmega_common/panic.c
Normal file
32
cpu/atmega_common/panic.c
Normal file
@ -0,0 +1,32 @@
|
||||
/*
|
||||
* 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.
|
||||
|
Loading…
Reference in New Issue
Block a user