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

4.104.115
Last change on this file since 6b150cc was 2f5435a4, checked in by Thomas Doerfler <Thomas.Doerfler@…>, on 03/25/10 at 20:26:00

add support for mpc551x based GW_LCFM system

  • Property mode set to 100644
File size: 1.4 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_BSP_H
22#define LIBBSP_POWERPC_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#ifndef ASM
39
40/** @brief System clock frequency */
41extern unsigned int bsp_clock_speed;
42
43/** @brief Time base clicks per micro second */
44extern uint32_t bsp_clicks_per_usec;
45
46/** @brief Convert Decrementer ticks to microseconds */
47#define BSP_Convert_decrementer( _value ) \
48  (((unsigned long long) (_value)) / ((unsigned long long)bsp_clicks_per_usec))
49
50rtems_status_code mpc55xx_sd_card_init( bool mount);
51
52/* Network driver configuration */
53
54struct rtems_bsdnet_ifconfig;
55
56int smsc9218i_attach_detach(
57  struct rtems_bsdnet_ifconfig *config,
58  int attaching
59);
60
61#define RTEMS_BSP_NETWORK_DRIVER_ATTACH smsc9218i_attach_detach
62
63#define RTEMS_BSP_NETWORK_DRIVER_NAME "eth0"
64
65#endif /* ASM */
66
67#ifdef __cplusplus
68}
69#endif /* __cplusplus */
70
71#endif /* LIBBSP_POWERPC_BSP_H */
Note: See TracBrowser for help on using the repository browser.