1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @ingroup lpc32xx |
---|
5 | * |
---|
6 | * @brief Global BSP definitions. |
---|
7 | */ |
---|
8 | |
---|
9 | /* |
---|
10 | * Copyright (c) 2009 |
---|
11 | * embedded brains GmbH |
---|
12 | * Obere Lagerstr. 30 |
---|
13 | * D-82178 Puchheim |
---|
14 | * Germany |
---|
15 | * <rtems@embedded-brains.de> |
---|
16 | * |
---|
17 | * The license and distribution terms for this file may be |
---|
18 | * found in the file LICENSE in this distribution or at |
---|
19 | * http://www.rtems.com/license/LICENSE. |
---|
20 | */ |
---|
21 | |
---|
22 | #ifndef LIBBSP_ARM_LPC32XX_BSP_H |
---|
23 | #define LIBBSP_ARM_LPC32XX_BSP_H |
---|
24 | |
---|
25 | #include <bspopts.h> |
---|
26 | |
---|
27 | #include <rtems.h> |
---|
28 | #include <rtems/console.h> |
---|
29 | #include <rtems/clockdrv.h> |
---|
30 | |
---|
31 | #ifdef __cplusplus |
---|
32 | extern "C" { |
---|
33 | #endif /* __cplusplus */ |
---|
34 | |
---|
35 | #define BSP_FEATURE_IRQ_EXTENSION |
---|
36 | |
---|
37 | #ifndef ASM |
---|
38 | |
---|
39 | struct rtems_bsdnet_ifconfig; |
---|
40 | |
---|
41 | /** |
---|
42 | * @defgroup lpc32xx LPC32XX Support |
---|
43 | * |
---|
44 | * @ingroup bsp_kit |
---|
45 | * |
---|
46 | * @brief LPC32XX support package. |
---|
47 | * |
---|
48 | * @{ |
---|
49 | */ |
---|
50 | |
---|
51 | /** |
---|
52 | * @brief Network driver attach and detach function. |
---|
53 | */ |
---|
54 | int lpc_eth_attach_detach( |
---|
55 | struct rtems_bsdnet_ifconfig *config, |
---|
56 | int attaching |
---|
57 | ); |
---|
58 | |
---|
59 | /** |
---|
60 | * @brief Standard network driver attach and detach function. |
---|
61 | */ |
---|
62 | #define RTEMS_BSP_NETWORK_DRIVER_ATTACH lpc_eth_attach_detach |
---|
63 | |
---|
64 | /** |
---|
65 | * @brief Standard network driver name. |
---|
66 | */ |
---|
67 | #define RTEMS_BSP_NETWORK_DRIVER_NAME "eth0" |
---|
68 | |
---|
69 | /** |
---|
70 | * @brief Optimized idle task. |
---|
71 | * |
---|
72 | * This idle task sets the power mode to idle. This causes the processor clock |
---|
73 | * to be stopped, while on-chip peripherals remain active. Any enabled |
---|
74 | * interrupt from a peripheral or an external interrupt source will cause the |
---|
75 | * processor to resume execution. |
---|
76 | * |
---|
77 | * To enable the idle task use the following in the system configuration: |
---|
78 | * |
---|
79 | * @code |
---|
80 | * #include <bsp.h> |
---|
81 | * |
---|
82 | * #define CONFIGURE_INIT |
---|
83 | * |
---|
84 | * #define CONFIGURE_IDLE_TASK_BODY lpc32xx_idle |
---|
85 | * |
---|
86 | * #include <confdefs.h> |
---|
87 | * @endcode |
---|
88 | */ |
---|
89 | void *lpc32xx_idle(uintptr_t ignored); |
---|
90 | |
---|
91 | /** @} */ |
---|
92 | |
---|
93 | #endif /* ASM */ |
---|
94 | |
---|
95 | #ifdef __cplusplus |
---|
96 | } |
---|
97 | #endif /* __cplusplus */ |
---|
98 | |
---|
99 | #endif /* LIBBSP_ARM_LPC32XX_BSP_H */ |
---|