source: rtems/c/src/lib/libbsp/powerpc/mpc55xxevb/include/bsp.h @ b907a78b

4.115
Last change on this file since b907a78b was 839dc97e, checked in by Sebastian Huber <sebastian.huber@…>, on 08/30/11 at 13:13:25

2011-08-30 Sebastian Huber <sebastian.huber@…>

  • include/bsp.h: Define BSP_FEATURE_IRQ_EXTENSION.
  • Property mode set to 100644
File size: 1.5 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup mpc55xx
5 *
6 * @brief Global BSP variables and functions
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_POWERPC_MPC55XXEVB_BSP_H
22#define LIBBSP_POWERPC_MPC55XXEVB_BSP_H
23
24#include <stdint.h>
25
26#include <rtems.h>
27#include <rtems/console.h>
28#include <rtems/clockdrv.h>
29
30#include <bspopts.h>
31
32#include <bsp/tictac.h>
33
34#ifdef __cplusplus
35extern "C" {
36#endif /* __cplusplus */
37
38#define BSP_SMALL_MEMORY 1
39
40#define BSP_FEATURE_IRQ_EXTENSION
41
42#ifndef ASM
43
44/** @brief System clock frequency */
45extern unsigned int bsp_clock_speed;
46
47/** @brief Time base clicks per micro second */
48extern uint32_t bsp_clicks_per_usec;
49
50/** @brief Convert Decrementer ticks to microseconds */
51#define BSP_Convert_decrementer( _value ) \
52  (((unsigned long long) (_value)) / ((unsigned long long)bsp_clicks_per_usec))
53
54rtems_status_code mpc55xx_sd_card_init( bool mount);
55
56/* Network driver configuration */
57
58struct rtems_bsdnet_ifconfig;
59
60int smsc9218i_attach_detach(
61  struct rtems_bsdnet_ifconfig *config,
62  int attaching
63);
64
65#define RTEMS_BSP_NETWORK_DRIVER_ATTACH smsc9218i_attach_detach
66
67#define RTEMS_BSP_NETWORK_DRIVER_NAME "eth0"
68
69rtems_status_code bsp_register_i2c(void);
70
71#endif /* ASM */
72
73#ifdef __cplusplus
74}
75#endif /* __cplusplus */
76
77#endif /* LIBBSP_POWERPC_MPC55XXEVB_BSP_H */
Note: See TracBrowser for help on using the repository browser.