/******************************************************************************/
/* Dbg_Flash.ini Initialization File for Debugging from Internal              */
/*               Flash for NXP LPC18xx/LPC43xx                                */
/******************************************************************************/
/* This file is part of the uVision/ARM development tools.                    */
/* Copyright (c) 2005-2012 Keil Software. All rights reserved.                */
/* This software may only be used under the terms of a valid, current,        */
/* end user licence from KEIL for a compatible version of KEIL software       */
/* development tools. Nothing else gives you the right to use this software.  */
/******************************************************************************/

FUNC void Per_Reset (void) {
  // Reset peripherals: LCD, USB0, USB1, DMA, SDIO, ETHERNET
  _WDWORD(0x40053100, 0x005F0000);   // Issue reset
  _sleep_(1);
}

Per_Reset();                                     // Reset some peripherals

KILL BUTTON *                                    // Kill all buttons
DEFINE BUTTON "Reset Peripherals", "Per_Reset()" // Create peripheral reset button

