5
Last change
on this file since 9177426 was
9177426,
checked in by Joel Sherrill <joel@…>, on 06/15/17 at 17:40:04
|
lpc176x/misc/restart.c: Fix duplicate const warning
|
-
Property mode set to
100644
|
File size:
688 bytes
|
Rev | Line | |
---|
[19260fb] | 1 | /** |
---|
| 2 | * @file |
---|
| 3 | * |
---|
| 4 | * @ingroup lpc176x |
---|
| 5 | * |
---|
| 6 | * @brief Restart implementation. |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | /* |
---|
| 10 | * Copyright (c) 2011-2012 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 |
---|
[d4edbdbc] | 20 | * http://www.rtems.org/license/LICENSE. |
---|
[19260fb] | 21 | */ |
---|
| 22 | |
---|
| 23 | #include <rtems.h> |
---|
| 24 | #include <bsp.h> |
---|
| 25 | |
---|
[9177426] | 26 | void bsp_restart( const void *const addr ) |
---|
[19260fb] | 27 | { |
---|
| 28 | rtems_interrupt_level level; |
---|
| 29 | |
---|
| 30 | void (*start) ( void ) = addr; |
---|
| 31 | |
---|
| 32 | rtems_interrupt_disable( level ); |
---|
[425fe40d] | 33 | (void) level; /* avoid set but not used warning */ |
---|
| 34 | ( *start )(); |
---|
[19260fb] | 35 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.