4.115
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 | |
---|
27 | void *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.