RTEMS
6.3
Toggle main menu visibility
Loading...
Searching...
No Matches
bsps
lm32
lm32_evr
include
bsp.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: BSD-2-Clause */
2
10
11
/*
12
* COPYRIGHT (c) 1989-1999.
13
* On-Line Applications Research Corporation (OAR).
14
*
15
* Redistribution and use in source and binary forms, with or without
16
* modification, are permitted provided that the following conditions
17
* are met:
18
* 1. Redistributions of source code must retain the above copyright
19
* notice, this list of conditions and the following disclaimer.
20
* 2. Redistributions in binary form must reproduce the above copyright
21
* notice, this list of conditions and the following disclaimer in the
22
* documentation and/or other materials provided with the distribution.
23
*
24
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
25
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
27
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
28
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
29
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
30
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
31
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
32
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
33
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
34
* POSSIBILITY OF SUCH DAMAGE.
35
*
36
* Jukka Pietarinen <jukka.pietarinen@mrf.fi>, 2008,
37
* Micro-Research Finland Oy
38
*/
39
40
#ifndef LIBBSP_LM32_LM32_EVR_BSP_H
41
#define LIBBSP_LM32_LM32_EVR_BSP_H
42
52
#include <stdint.h>
53
#include <bspopts.h>
54
#include <
bsp/default-initial-extension.h
>
55
56
#include <
rtems.h
>
57
58
#ifdef __cplusplus
59
extern
"C"
{
60
#endif
61
62
/*
63
* lm32 requires certain aligment of mbuf because unaligned uint32_t
64
* accesses are not handled properly.
65
*/
66
67
#define CPU_U32_FIX
68
69
#if defined(RTEMS_NETWORKING)
70
struct
rtems_bsdnet_ifconfig;
71
72
extern
int
rtems_tsmac_driver_attach(
struct
rtems_bsdnet_ifconfig *config,
73
int
attaching);
74
75
#define RTEMS_BSP_NETWORK_DRIVER_NAME "TSMAC0"
76
#define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_tsmac_driver_attach
77
78
/*
79
* Due to a hardware design error (RJ45 connector with 10baseT magnetics)
80
* we are forced to use 10baseT mode.
81
*/
82
83
#define TSMAC_FORCE_10BASET
84
#endif
85
86
/* functions */
87
rtems_isr_entry
set_vector(
/* returns old vector */
88
rtems_isr_entry
handler,
/* isr routine */
89
rtems_vector_number
vector,
/* vector number */
90
int
type
/* RTEMS or RAW intr */
91
);
92
93
/*
94
* Prototypes for BSP methods that cross file boundaries
95
*/
96
void
BSP_uart_polled_write(
char
ch);
97
int
BSP_uart_polled_read(
void
);
98
char
BSP_uart_is_character_ready(
char
*ch);
99
100
#ifdef __cplusplus
101
}
102
#endif
103
105
106
#endif
107
/* end of include file */
default-initial-extension.h
This header file provides the default definition of BSP_INITIAL_EXTENSION.
rtems_isr_entry
ISR_Handler_entry rtems_isr_entry
Interrupt service routines installed by rtems_interrupt_catch() shall have this type.
Definition
intr.h:134
rtems_vector_number
ISR_Vector_number rtems_vector_number
This integer type represents interrupt vector numbers.
Definition
intr.h:102
rtems.h
This header file defines the RTEMS Classic API.
Generated by
1.18.0