source: rtems/c/src/lib/libbsp/arm/realview-pbx-a9/startup/bspreset.c @ 78c9fe8

5
Last change on this file since 78c9fe8 was c499856, checked in by Chris Johns <chrisj@…>, on Mar 20, 2014 at 9:10:47 PM

Change all references of rtems.com to rtems.org.

  • Property mode set to 100644
File size: 600 bytes
RevLine 
[a91dc98b]1/*
2 * Copyright (c) 2013 embedded brains GmbH.  All rights reserved.
3 *
4 *  embedded brains GmbH
5 *  Dornierstr. 4
6 *  82178 Puchheim
7 *  Germany
8 *  <info@embedded-brains.de>
9 *
10 * The license and distribution terms for this file may be
11 * found in the file LICENSE in this distribution or at
[c499856]12 * http://www.rtems.org/license/LICENSE.
[a91dc98b]13 */
14
15#include <bsp/bootcard.h>
16
17void bsp_reset(void)
18{
19  volatile uint32_t *sys_lock = (volatile uint32_t *) 0x10000020;
20  volatile uint32_t *sys_resetctl = (volatile uint32_t *) 0x10000040;
21
22  while (true) {
23    *sys_lock = 0xa05f;
24    *sys_resetctl = 0xf4;
25  }
26}
Note: See TracBrowser for help on using the repository browser.