RTEMS 7.0-rc1
Loading...
Searching...
No Matches
bsp.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-2-Clause */
2
10/*
11 * Copyright (C) 2005 Eric Norum <eric@norum.ca>
12 *
13 * Redistribution and use in source and binary forms, with or without
14 * modification, are permitted provided that the following conditions
15 * are met:
16 * 1. Redistributions of source code must retain the above copyright
17 * notice, this list of conditions and the following disclaimer.
18 * 2. Redistributions in binary form must reproduce the above copyright
19 * notice, this list of conditions and the following disclaimer in the
20 * documentation and/or other materials provided with the distribution.
21 *
22 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
26 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
27 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
28 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
29 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
30 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
31 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32 * POSSIBILITY OF SUCH DAMAGE.
33 */
34
35#ifndef LIBBSP_M68K_AV5282_BSP_H
36#define LIBBSP_M68K_AV5282_BSP_H
37
48#ifndef ASM
49
50#include <bspopts.h>
52
53#include <rtems.h>
54#include <rtems/bspIo.h>
55
56/***************************************************************************/
58#include <mcf5282/mcf5282.h> /* internal MCF5282 modules */
59
60#ifdef __cplusplus
61extern "C" {
62#endif
63
64/***************************************************************************/
66struct rtems_bsdnet_ifconfig;
67extern int rtems_fec_driver_attach (struct rtems_bsdnet_ifconfig *config, int attaching );
68#define RTEMS_BSP_NETWORK_DRIVER_NAME "fs1"
69#define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_fec_driver_attach
70
71/***************************************************************************/
74/* define which port the console should use - all other ports are then defined as general purpose */
75#define CONSOLE_PORT 0
76
77/* externals */
78
79/* constants */
80
81/* miscellaneous stuff assumed to exist */
82
83/* functions */
84
85uint32_t get_CPU_clock_speed(void);
86
87/*
88 * Interrupt assignments
89 * Highest-priority listed first
90 */
91#define FEC_IRQ_LEVEL 4
92#define FEC_IRQ_RX_PRIORITY 7
93#define FEC_IRQ_TX_PRIORITY 6
94
95#define PIT3_IRQ_LEVEL 4
96#define PIT3_IRQ_PRIORITY 0
97
98#define UART0_IRQ_LEVEL 3
99#define UART0_IRQ_PRIORITY 7
100#define UART1_IRQ_LEVEL 3
101#define UART1_IRQ_PRIORITY 6
102#define UART2_IRQ_LEVEL 3
103#define UART2_IRQ_PRIORITY 5
104
105/*
106 * Prototypes for methods called from .S to alow dependency tracking
107 */
108void Init5282(void);
109
110#ifdef __cplusplus
111}
112#endif
113
114#endif /* !ASM */
115
118#endif
This header file provides the kernel character input/output support API.
This header file provides the default definition of BSP_INITIAL_EXTENSION.
This header file defines the RTEMS Classic API.