source: rtems/c/src/lib/libbsp/m68k/mcf5235/include/bsp.h @ 63fe77e1

4.115
Last change on this file since 63fe77e1 was 63fe77e1, checked in by Joel Sherrill <joel.sherrill@…>, on 10/20/14 at 15:58:38

m68k/mcf5235: Fix warnings

  • Property mode set to 100644
File size: 1.9 KB
Line 
1/*
2 *  mcf5235 BSP header file
3 */
4
5#ifndef _BSP_H
6#define _BSP_H
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12#include <bspopts.h>
13#include <bsp/default-initial-extension.h>
14#include <rtems.h>
15#include <rtems/iosupp.h>
16#include <rtems/console.h>
17#include <rtems/clockdrv.h>
18#include <rtems/iosupp.h>
19#include <rtems/bspIo.h>
20
21/***************************************************************************/
22/**  Hardware data structure headers                                      **/
23#include <mcf5235/mcf5235.h>   /* internal MCF5235 modules */
24
25/***************************************************************************/
26/**  Network driver configuration                                         **/
27struct rtems_bsdnet_ifconfig;
28extern int rtems_fec_driver_attach (struct rtems_bsdnet_ifconfig *config, int attaching );
29#define RTEMS_BSP_NETWORK_DRIVER_NAME     "fec0"
30#define RTEMS_BSP_NETWORK_DRIVER_ATTACH   rtems_fec_driver_attach
31
32/***************************************************************************/
33/**  User Definable configuration                                         **/
34
35/* define which port the console should use - all other ports are then defined as general purpose */
36#define CONSOLE_PORT        0
37
38/* functions */
39
40uint32_t get_CPU_clock_speed(void);
41rtems_isr_entry set_vector(
42  rtems_isr_entry     handler,
43  rtems_vector_number vector,
44  int                 type
45);
46
47/*
48 * Interrupt assignments
49 *  Highest-priority listed first
50 */
51#define FEC_IRQ_LEVEL       4
52#define FEC_IRQ_RX_PRIORITY 7
53#define FEC_IRQ_TX_PRIORITY 6
54
55#define PIT3_IRQ_LEVEL      4
56#define PIT3_IRQ_PRIORITY   0
57
58#define UART0_IRQ_LEVEL     3
59#define UART0_IRQ_PRIORITY  7
60#define UART1_IRQ_LEVEL     3
61#define UART1_IRQ_PRIORITY  6
62#define UART2_IRQ_LEVEL     3
63#define UART2_IRQ_PRIORITY  5
64
65/*
66 * Prototypes for BSP methods which cross file boundaries
67 */
68void Init5235(void);
69
70#ifdef __cplusplus
71}
72#endif
73
74#endif
Note: See TracBrowser for help on using the repository browser.