4.115
Rev | Line | |
---|
[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 |
---|
| 12 | * http://www.rtems.com/license/LICENSE. |
---|
| 13 | */ |
---|
| 14 | |
---|
| 15 | #include <bsp/bootcard.h> |
---|
| 16 | |
---|
| 17 | void 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.