source: rtems/c/src/lib/libbsp/m68k/av5282/include/bsp.h @ 3d4898f

4.115
Last change on this file since 3d4898f was 3d4898f, checked in by Joel Sherrill <joel.sherrill@…>, on 10/20/14 at 02:21:06

m68k/av5282: Fix warning

  • Property mode set to 100644
File size: 2.2 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup m68k_av5282
5 *
6 * @brief Global BSP definitions.
7 */
8
9/*
10 *  av5282 BSP header file
11 */
12
13/**
14 * @defgroup m68k_av5282 AV5282 Support
15 *
16 * @ingroup bsp_m68k
17 *
18 * @brief AV5282 support.
19 */
20
21#ifndef __SBav5282_BSP_H
22#define __SBav5282_BSP_H
23
24#ifndef ASM
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
30#include <bspopts.h>
31#include <bsp/default-initial-extension.h>
32
33#include <rtems.h>
34#include <rtems/iosupp.h>
35#include <rtems/console.h>
36#include <rtems/clockdrv.h>
37#include <rtems/iosupp.h>
38#include <rtems/bspIo.h>
39
40/***************************************************************************/
41/**  Hardware data structure headers                                      **/
42#include <mcf5282/mcf5282.h>   /* internal MCF5282 modules */
43
44/***************************************************************************/
45/**  Network driver configuration                                         **/
46struct rtems_bsdnet_ifconfig;
47extern int rtems_fec_driver_attach (struct rtems_bsdnet_ifconfig *config, int attaching );
48#define RTEMS_BSP_NETWORK_DRIVER_NAME     "fs1"
49#define RTEMS_BSP_NETWORK_DRIVER_ATTACH   rtems_fec_driver_attach
50
51/***************************************************************************/
52/**  User Definable configuration                                         **/
53
54/* define which port the console should use - all other ports are then defined as general purpose */
55#define CONSOLE_PORT        0
56
57/* externals */
58
59/* constants */
60
61/* miscellaneous stuff assumed to exist */
62
63/* functions */
64
65uint32_t get_CPU_clock_speed(void);
66
67rtems_isr_entry set_vector(
68  rtems_isr_entry     handler,
69  rtems_vector_number vector,
70  int                 type
71);
72
73/*
74 * Interrupt assignments
75 *  Highest-priority listed first
76 */
77#define FEC_IRQ_LEVEL       4
78#define FEC_IRQ_RX_PRIORITY 7
79#define FEC_IRQ_TX_PRIORITY 6
80
81#define PIT3_IRQ_LEVEL      4
82#define PIT3_IRQ_PRIORITY   0
83
84#define UART0_IRQ_LEVEL     3
85#define UART0_IRQ_PRIORITY  7
86#define UART1_IRQ_LEVEL     3
87#define UART1_IRQ_PRIORITY  6
88#define UART2_IRQ_LEVEL     3
89#define UART2_IRQ_PRIORITY  5
90
91/*
92 * Prototypes for methods called from .S to alow dependency tracking
93 */
94void Init5282(void);
95
96#ifdef __cplusplus
97}
98#endif
99
100#endif /* !ASM */
101#endif
Note: See TracBrowser for help on using the repository browser.