source: rtems/c/src/lib/libbsp/arm/lpc24xx/misc/bspidle.c @ 82dcbc8

4.115
Last change on this file since 82dcbc8 was ba938b8d, checked in by Thomas Doerfler <Thomas.Doerfler@…>, on 09/18/09 at 08:05:40

Changes throughout.

  • Property mode set to 100644
File size: 821 bytes
Line 
1/**
2 * @file
3 *
4 * @author Sebastian Huber <sebastian.huber@embedded-brains.de>
5 *
6 * @ingroup lpc24xx
7 *
8 * @brief Idle task.
9 */
10
11/*
12 * Copyright (c) 2008
13 * Embedded Brains GmbH
14 * Obere Lagerstr. 30
15 * D-82178 Puchheim
16 * Germany
17 * rtems@embedded-brains.de
18 *
19 * The license and distribution terms for this file may be
20 * found in the file LICENSE in this distribution or at
21 * http://www.rtems.com/license/LICENSE.
22 */
23
24#include <bsp.h>
25#include <bsp/lpc24xx.h>
26
27void *bsp_idle_thread(uintptr_t ignored)
28{
29  while (true) {
30    /*
31     * Set power mode to idle.  Causes the processor clock to be stopped, while
32     * on-chip peripherals remain active.  Any enabled interrupt from a
33     * peripheral or an external interrupt source will cause the processor to
34     * resume execution.
35     */
36    PCON = 0x1;
37  }
38}
Note: See TracBrowser for help on using the repository browser.