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

4.115
Last change on this file since c2e32ff was c2e32ff, checked in by Joel Sherrill <joel.sherrill@…>, on 10/20/14 at 14:25:41

lm32 BSP shared and lm32_evr: Fix BSPs

  • Property mode set to 100644
File size: 1.9 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup lm32_evr
5 *
6 * @brief Global BSP definitions.
7 */
8
9/*
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
15 *  http://www.rtems.org/license/LICENSE.
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>
26#include <bsp/default-initial-extension.h>
27
28#include <rtems.h>
29#include <rtems/console.h>
30#include <rtems/clockdrv.h>
31
32/**
33 * @defgroup lm32_evr EVR Support
34 *
35 * @ingroup bsp_lm32
36 *
37 * @brief EVR support package.
38 */
39
40#if defined(RTEMS_NETWORKING)
41#include <rtems/rtems_bsdnet.h>
42#endif
43
44#ifdef __cplusplus
45extern "C" {
46#endif
47
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.
53   */
54
55#define CPU_U32_FIX
56
57#if defined(RTEMS_NETWORKING)
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
64  /*
65   * Due to a hardware design error (RJ45 connector with 10baseT magnetics)
66   * we are forced to use 10baseT mode.
67   */
68
69#define TSMAC_FORCE_10BASET
70#endif
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/*
80 * Prototypes for BSP methods that cross file boundaries
81 */
82void BSP_uart_polled_write(char ch);
83int BSP_uart_polled_read( void );
84char BSP_uart_is_character_ready(char *ch);
85
86#ifdef __cplusplus
87}
88#endif
89
90#endif
91/* end of include file */
Note: See TracBrowser for help on using the repository browser.