source: rtems/c/src/lib/libbsp/sparc/leon2/startup/bspidle.c @ 8d830fae

4.11
Last change on this file since 8d830fae was 8d830fae, checked in by Radu <radustoma@…>, on Dec 2, 2013 at 8:07:35 PM

leon2_doxygen_1

  • Property mode set to 100644
File size: 838 bytes
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
27void *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.