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

4.115
Last change on this file since 6077804 was 6077804, checked in by Joel Sherrill <joel.sherrill@…>, on 10/12/14 at 18:58:22

lm32/lm32_evr/include/bsp.h: Fix warnings

  • Property mode set to 100644
File size: 1.7 KB
RevLine 
[5b4c479]1/**
2 * @file
3 *
4 * @ingroup lm32_evr
5 *
6 * @brief Global BSP definitions.
7 */
8
[0e363f4]9/*
[e44ffe5]10 *  COPYRIGHT (c) 1989-1999.
11 *  On-Line Applications Research Corporation (OAR).
12 *
13 *  The license and distribution terms for this file may be
14 *  found in the file LICENSE in this distribution or at
[c499856]15 *  http://www.rtems.org/license/LICENSE.
[e44ffe5]16 *
17 *  Jukka Pietarinen <jukka.pietarinen@mrf.fi>, 2008,
18 *  Micro-Research Finland Oy
19 */
20
21#ifndef _BSP_H
22#define _BSP_H
23
24#include <stdint.h>
25#include <bspopts.h>
[a052181]26#include <bsp/default-initial-extension.h>
[e44ffe5]27
28#include <rtems.h>
29#include <rtems/console.h>
30#include <rtems/clockdrv.h>
31
[5b4c479]32/**
33 * @defgroup lm32_evr EVR Support
34 *
35 * @ingroup bsp_lm32
36 *
37 * @brief EVR support package.
38 */
39
[12aa044]40#if defined(RTEMS_NETWORKING)
41#include <rtems/rtems_bsdnet.h>
42#endif
43
[de87499]44#ifdef __cplusplus
45extern "C" {
46#endif
47
[e44ffe5]48#define BSP_DIRTY_MEMORY 1
49
50  /*
51   * lm32 requires certain aligment of mbuf because unaligned uint32_t
52   * accesses are not handled properly.
[32b8506]53   */
[e44ffe5]54
55#define CPU_U32_FIX
56
[12aa044]57#if defined(RTEMS_NETWORKING)
[e44ffe5]58extern int rtems_tsmac_driver_attach(struct rtems_bsdnet_ifconfig *config,
59                                     int attaching);
60
61#define RTEMS_BSP_NETWORK_DRIVER_NAME "TSMAC0"
62#define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_tsmac_driver_attach
63
[32b8506]64  /*
65   * Due to a hardware design error (RJ45 connector with 10baseT magnetics)
[e44ffe5]66   * we are forced to use 10baseT mode.
67   */
68
69#define TSMAC_FORCE_10BASET
[12aa044]70#endif
[e44ffe5]71
72/* functions */
73rtems_isr_entry set_vector(                     /* returns old vector */
74  rtems_isr_entry     handler,                  /* isr routine        */
75  rtems_vector_number vector,                   /* vector number      */
76  int                 type                      /* RTEMS or RAW intr  */
77);
78
79#ifdef __cplusplus
80}
81#endif
82
83#endif
84/* end of include file */
Note: See TracBrowser for help on using the repository browser.