source: rtems/c/src/lib/libbsp/arm/lpc24xx/include/bsp.h @ 82dcbc8

4.115
Last change on this file since 82dcbc8 was a9485d7b, checked in by Sebastian Huber <sebastian.huber@…>, on 05/20/10 at 13:10:56

2010-05-20 Sebastian Huber <sebastian.huber@…>

  • Makefile.am, preinstall.am, include/bsp.h, startup/bspstart.c: Use shared output character implementation.
  • Property mode set to 100644
File size: 1.9 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup lpc24xx
5 *
6 * @brief Global BSP definitions.
7 */
8
9/*
10 * Copyright (c) 2008
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 found in the file
18 * LICENSE in this distribution or at http://www.rtems.com/license/LICENSE.
19 */
20
21#ifndef LIBBSP_ARM_LPC24XX_BSP_H
22#define LIBBSP_ARM_LPC24XX_BSP_H
23
24#include <bspopts.h>
25
26#include <rtems.h>
27#include <rtems/console.h>
28#include <rtems/clockdrv.h>
29
30#ifdef __cplusplus
31extern "C" {
32#endif /* __cplusplus */
33
34#define BSP_FEATURE_IRQ_EXTENSION
35
36#ifndef ASM
37
38struct rtems_bsdnet_ifconfig;
39
40/**
41 * @defgroup lpc24xx LPC24XX Support
42 *
43 * @ingroup bsp_kit
44 *
45 * @brief LPC24XX support package.
46 *
47 * @{
48 */
49
50/**
51 * @brief Network driver attach and detach function.
52 */
53int lpc_eth_attach_detach(
54  struct rtems_bsdnet_ifconfig *config,
55  int attaching
56);
57
58/**
59 * @brief Standard network driver attach and detach function.
60 */
61#define RTEMS_BSP_NETWORK_DRIVER_ATTACH lpc_eth_attach_detach
62
63/**
64 * @brief Standard network driver name.
65 */
66#define RTEMS_BSP_NETWORK_DRIVER_NAME "eth0"
67
68/**
69 * @brief Optimized idle task.
70 *
71 * This idle task sets the power mode to idle.  This causes the processor clock
72 * to be stopped, while on-chip peripherals remain active.  Any enabled
73 * interrupt from a peripheral or an external interrupt source will cause the
74 * processor to resume execution.
75 *
76 * To enable the idle task use the following in the system configuration:
77 *
78 * @code
79 * #include <bsp.h>
80 *
81 * #define CONFIGURE_INIT
82 *
83 * #define CONFIGURE_IDLE_TASK_BODY bsp_idle_thread
84 *
85 * #include <confdefs.h>
86 * @endcode
87 */
88void *bsp_idle_thread(uintptr_t ignored);
89
90#define BSP_CONSOLE_UART_BASE 0xe000c000
91
92/** @} */
93
94#endif /* ASM */
95
96#ifdef __cplusplus
97}
98#endif /* __cplusplus */
99
100#endif /* LIBBSP_ARM_LPC24XX_BSP_H */
Note: See TracBrowser for help on using the repository browser.