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

5
Last change on this file since aeefcc7 was aeefcc7, checked in by Joel Sherrill <joel@…>, on Mar 30, 2016 at 7:04:22 PM

m68k/av5282/include/bsp.h: Do not include <rtems/iosupp.h>

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