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

4.115
Last change on this file since 9e7758b was 9e7758b, checked in by Sebastian Huber <sebastian.huber@…>, on 08/31/11 at 16:03:10

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

  • startup/bspgetworkarea.c, startup/linkcmds.base: Removed files.
  • include/mpc55xx-config.h, make/custom/mpc5674fevb.cfg, startup/early-init.c, startup/ebi-cal-cs-config.c, startup/ebi-cs-config.c, startup/exc-vector-base.S, startup/fmpll-syncr-vals.c, startup/linkcmds.mpc5674fevb, startup/mmu-config.c, startup/siu-pcr-config.c: New files.
  • Makefile.am, preinstall.am: Reflect changes above.
  • startup/linkcmds.gwlcfm, startup/linkcmds.mpc5566evb, startup/linkcmds.phycore_mpc5554: Use linker command base file.
  • configure.ac: Support MPC5674F. Changed eSCI options.
  • clock/clock-config.c: Support MPC5674F.
  • i2c/i2c_init.c, network/smsc9218i.c, startup/sd-card-init.c: Update due to API changes.
  • include/bsp.h: Define BSP_INTERRUPT_STACK_AT_WORK_AREA_BEGIN.
  • network/if_smc.c: Use HAS_SMC91111.
  • startup/start.S, startup/bspstart.c: Moved low-level initialization into new files. Overall cleanup.
  • Property mode set to 100644
File size: 1.6 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup mpc55xx
5 *
6 * @brief Global BSP variables and functions
7 */
8
9/*
10 * Copyright (c) 2008-2011 embedded brains GmbH.  All rights reserved.
11 *
12 *  embedded brains GmbH
13 *  Obere Lagerstr. 30
14 *  82178 Puchheim
15 *  Germany
16 *  <rtems@embedded-brains.de>
17 *
18 * The license and distribution terms for this file may be
19 * found in the file LICENSE in this distribution or at
20 * http://www.rtems.com/license/LICENSE.
21 *
22 * $Id$
23 */
24
25#ifndef LIBBSP_POWERPC_MPC55XXEVB_BSP_H
26#define LIBBSP_POWERPC_MPC55XXEVB_BSP_H
27
28#include <stdint.h>
29
30#include <rtems.h>
31#include <rtems/console.h>
32#include <rtems/clockdrv.h>
33
34#include <bspopts.h>
35
36#include <bsp/tictac.h>
37
38#ifdef __cplusplus
39extern "C" {
40#endif /* __cplusplus */
41
42#define BSP_SMALL_MEMORY 1
43
44#define BSP_INTERRUPT_STACK_AT_WORK_AREA_BEGIN
45
46#define BSP_FEATURE_IRQ_EXTENSION
47
48#ifndef ASM
49
50/** @brief System clock frequency */
51extern unsigned int bsp_clock_speed;
52
53/** @brief Time base clicks per micro second */
54extern uint32_t bsp_clicks_per_usec;
55
56/** @brief Convert Decrementer ticks to microseconds */
57#define BSP_Convert_decrementer( _value ) \
58  (((unsigned long long) (_value)) / ((unsigned long long)bsp_clicks_per_usec))
59
60rtems_status_code mpc55xx_sd_card_init( bool mount);
61
62/* Network driver configuration */
63
64struct rtems_bsdnet_ifconfig;
65
66int smsc9218i_attach_detach(
67  struct rtems_bsdnet_ifconfig *config,
68  int attaching
69);
70
71#define RTEMS_BSP_NETWORK_DRIVER_ATTACH smsc9218i_attach_detach
72
73#define RTEMS_BSP_NETWORK_DRIVER_NAME "eth0"
74
75rtems_status_code bsp_register_i2c(void);
76
77#endif /* ASM */
78
79#ifdef __cplusplus
80}
81#endif /* __cplusplus */
82
83#endif /* LIBBSP_POWERPC_MPC55XXEVB_BSP_H */
Note: See TracBrowser for help on using the repository browser.