4.115
Last change
on this file since 1c0663b4 was
d4edbdbc,
checked in by Sebastian Huber <sebastian.huber@…>, on 03/20/15 at 13:09:26
|
Replace www.rtems.com with www.rtems.org
|
-
Property mode set to
100644
|
File size:
856 bytes
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @ingroup lpc176x |
---|
5 | * |
---|
6 | * @brief Reset code. |
---|
7 | */ |
---|
8 | |
---|
9 | /* |
---|
10 | * Copyright (c) 2008-2013 embedded brains GmbH. All rights reserved. |
---|
11 | * |
---|
12 | * embedded brains GmbH |
---|
13 | * Obere Lagerstr. 30 |
---|
14 | * 82178 Puchheim |
---|
15 | * Germany |
---|
16 | * <rtems@embedded-brains.de> |
---|
17 | * |
---|
18 | * The license and distribution terms for this file may be |
---|
19 | * found in the file LICENSE in this distribution or at |
---|
20 | * http://www.rtems.org/license/LICENSE. |
---|
21 | */ |
---|
22 | |
---|
23 | #include <rtems.h> |
---|
24 | #include <rtems/score/armv7m.h> |
---|
25 | |
---|
26 | #include <bsp/bootcard.h> |
---|
27 | #include <bsp/lpc176x.h> |
---|
28 | #include <bsp/start.h> |
---|
29 | |
---|
30 | BSP_START_TEXT_SECTION __attribute__( ( flatten ) ) void bsp_reset( void ) |
---|
31 | { |
---|
32 | rtems_interrupt_level level; |
---|
33 | |
---|
34 | (void) level; |
---|
35 | rtems_interrupt_disable( level ); |
---|
36 | |
---|
37 | _ARMV7M_SCB->aircr = ARMV7M_SCB_AIRCR_VECTKEY | |
---|
38 | ARMV7M_SCB_AIRCR_SYSRESETREQ; |
---|
39 | |
---|
40 | while ( true ) { |
---|
41 | /* Do nothing */ |
---|
42 | } |
---|
43 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.