4.115
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * @ingroup sparc_leon2 |
---|
4 | * @brief LEON2 Idle Thread |
---|
5 | */ |
---|
6 | |
---|
7 | /* |
---|
8 | * LEON2 Idle Thread with power-down function |
---|
9 | * |
---|
10 | * COPYRIGHT (c) 1989-2009. |
---|
11 | * On-Line Applications Research Corporation (OAR). |
---|
12 | * |
---|
13 | * The license and distribution terms for this file may be |
---|
14 | * found in the file LICENSE in this distribution or at |
---|
15 | * http://www.rtems.com/license/LICENSE. |
---|
16 | * |
---|
17 | * Ported to LEON implementation of the SPARC by On-Line Applications |
---|
18 | * Research Corporation (OAR) under contract to the European Space |
---|
19 | * Agency (ESA). |
---|
20 | * |
---|
21 | * LEON modifications of respective RTEMS file: COPYRIGHT (c) 1995. |
---|
22 | * European Space Agency. |
---|
23 | */ |
---|
24 | |
---|
25 | #include <bsp.h> |
---|
26 | |
---|
27 | void *bsp_idle_thread( uintptr_t ignored ) |
---|
28 | { |
---|
29 | while (1) { |
---|
30 | /* make sure on load follows store to power-down reg */ |
---|
31 | LEON_REG.Power_Down = LEON_REG.Power_Down; |
---|
32 | } |
---|
33 | return NULL; |
---|
34 | } |
---|
35 | |
---|
Note: See
TracBrowser
for help on using the repository browser.