2013-04-02 02:04:19 +02:00
|
|
|
/*
|
|
|
|
* lpc_cpu.c - LPC architecture common support functions
|
|
|
|
* Copyright (C) 2013 Oliver Hahm <oliver.hahm@inria.fr>
|
|
|
|
*
|
2013-08-16 10:20:23 +02:00
|
|
|
* This source code is licensed under the GNU Lesser General Public License,
|
|
|
|
* Version 2. See the file LICENSE for more details.
|
2013-04-02 02:04:19 +02:00
|
|
|
*
|
|
|
|
* This file is part of RIOT.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2013-07-24 23:53:38 +02:00
|
|
|
#include "cpu.h"
|
|
|
|
#include "irq.h"
|
|
|
|
|
2013-04-02 02:04:19 +02:00
|
|
|
__attribute__((naked,noreturn)) void arm_reset(void)
|
|
|
|
{
|
2013-07-24 23:53:38 +02:00
|
|
|
disableIRQ();
|
2013-11-25 16:51:18 +01:00
|
|
|
WDTC = 0x0FFFF;
|
2013-04-02 02:04:19 +02:00
|
|
|
WDMOD = 0x03;
|
|
|
|
WDFEED= 0xAA;
|
|
|
|
WDFEED= 0x55;
|
|
|
|
while(1);
|
|
|
|
}
|