RTEMS: bsps/lm32/lm32_evr/include/bsp.h Source File

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
bsp.h
Go to the documentation of this file.
1
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 LIBBSP_LM32_LM32_EVR_BSP_H
22#define LIBBSP_LM32_LM32_EVR_BSP_H
23
33#include <stdint.h>
34#include <bspopts.h>
35#include <bsp/default-initial-extension.h>
36
37#include <rtems.h>
38
39#ifdef __cplusplus
40extern "C" {
41#endif
42
43/*
44 * lm32 requires certain aligment of mbuf because unaligned uint32_t
45 * accesses are not handled properly.
46 */
47
48#define CPU_U32_FIX
49
50#if defined(RTEMS_NETWORKING)
51struct rtems_bsdnet_ifconfig;
52
53extern int rtems_tsmac_driver_attach(struct rtems_bsdnet_ifconfig *config,
54 int attaching);
55
56#define RTEMS_BSP_NETWORK_DRIVER_NAME "TSMAC0"
57#define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_tsmac_driver_attach
58
59 /*
60 * Due to a hardware design error (RJ45 connector with 10baseT magnetics)
61 * we are forced to use 10baseT mode.
62 */
63
64#define TSMAC_FORCE_10BASET
65#endif
66
67/* functions */
68rtems_isr_entry set_vector( /* returns old vector */
69 rtems_isr_entry handler, /* isr routine */
70 rtems_vector_number vector, /* vector number */
71 int type /* RTEMS or RAW intr */
72);
73
74/*
75 * Prototypes for BSP methods that cross file boundaries
76 */
77void BSP_uart_polled_write(char ch);
78int BSP_uart_polled_read( void );
79char BSP_uart_is_character_ready(char *ch);
80
81#ifdef __cplusplus
82}
83#endif
84
87#endif
88/* end of include file */
default-initial-extension.h
DEFAULT_INITIAL_EXTENSION Support.
rtems_vector_number
ISR_Vector_number rtems_vector_number
Control block type used to manage the vectors.
Definition: intr.h:47
rtems.h
config_s
Definition: deflate.c:115