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>
|
|
|
|
*
|
2014-07-31 19:59:02 +02:00
|
|
|
* 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.
|
2013-04-02 02:04:19 +02:00
|
|
|
*/
|
|
|
|
|
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);
|
|
|
|
}
|