source: rtems/c/src/lib/libbsp/lm32/lm32_evr/include/bsp.h @ e44ffe5

4.104.115
Last change on this file since e44ffe5 was e44ffe5, checked in by Joel Sherrill <joel.sherrill@…>, on 12/04/08 at 22:54:49

2008-12-04 Jukka Pietarinen <jukka.pietarinen@…>

  • ChangeLog?, Makefile.am, bsp_specs, configure.ac, preinstall.am, include/.cvsignore, include/bsp.h, include/coverhd.h, include/irq-config.h, include/system_conf.h, include/tm27.h, startup/linkcmds: New files.
  • Property mode set to 100644
File size: 1.8 KB
Line 
1/*  bsp.h
2 *
3 *  This include file contains all board IO definitions.
4 *
5 *  XXX : put yours in here
6 *
7 *  COPYRIGHT (c) 1989-1999.
8 *  On-Line Applications Research Corporation (OAR).
9 *
10 *  The license and distribution terms for this file may be
11 *  found in the file LICENSE in this distribution or at
12 *  http://www.rtems.com/license/LICENSE.
13 *
14 *  $Id$
15 *
16 *  Jukka Pietarinen <jukka.pietarinen@mrf.fi>, 2008,
17 *  Micro-Research Finland Oy
18 */
19
20#ifndef _BSP_H
21#define _BSP_H
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
27#include <stdint.h>
28#include <bspopts.h>
29
30#include <rtems.h>
31#include <rtems/console.h>
32#include <rtems/clockdrv.h>
33
34#define BSP_GET_WORK_AREA_DEBUG
35
36#define BSP_DIRTY_MEMORY 1
37
38  /*
39   * lm32 requires certain aligment of mbuf because unaligned uint32_t
40   * accesses are not handled properly.
41   */
42
43#define CPU_U32_FIX
44
45extern int rtems_tsmac_driver_attach(struct rtems_bsdnet_ifconfig *config,
46                                     int attaching);
47
48#define RTEMS_BSP_NETWORK_DRIVER_NAME "TSMAC0"
49#define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_tsmac_driver_attach
50
51  /*
52   * Due to a hardware design error (RJ45 connector with 10baseT magnetics)
53   * we are forced to use 10baseT mode.
54   */
55
56#define TSMAC_FORCE_10BASET
57
58  /*
59   *  Simple spin delay in microsecond units for device drivers.
60   *  This is very dependent on the clock speed of the target.
61   */
62
63#define rtems_bsp_delay( microseconds ) \
64  { \
65  }
66
67/* functions */
68#if 0
69rtems_isr_entry set_vector(                     /* returns old vector */
70  rtems_isr_entry     handler,                  /* isr routine        */
71  rtems_vector_number vector,                   /* vector number      */
72  int                 type                      /* RTEMS or RAW intr  */
73);
74#endif
75
76#ifdef __cplusplus
77}
78#endif
79
80#endif
81/* end of include file */
Note: See TracBrowser for help on using the repository browser.