RTEMS: bsps/m68k/mcf5329/include/bsp.h Source File

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
bsp.h
Go to the documentation of this file.
1
10/*
11 * mcf52235 BSP header file
12 */
13
14#ifndef LIBBSP_M68K_MCF5329_BSP_H
15#define LIBBSP_M68K_MCF5329_BSP_H
16
27#include <bspopts.h>
28#include <bsp/default-initial-extension.h>
29#include <rtems.h>
30#include <rtems/bspIo.h>
31
32/***************************************************************************/
34#include <mcf532x/mcf532x.h>
35
36#ifdef __cplusplus
37extern "C" {
38#endif
39
40 typedef volatile unsigned char vuint8;
41typedef volatile unsigned short vuint16;
42typedef volatile unsigned long vuint32;
43
44/***************************************************************************/
46struct rtems_bsdnet_ifconfig;
47extern int rtems_fec_driver_attach (struct rtems_bsdnet_ifconfig *config, int attaching );
48#define RTEMS_BSP_NETWORK_DRIVER_NAME "fec0"
49#define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_fec_driver_attach
50
51/***************************************************************************/
54/* define which port the console should use - all other ports are then defined as general purpose */
55#define CONSOLE_PORT 0
56
57/* functions */
58
59uint32_t bsp_get_CPU_clock_speed(void);
60uint32_t bsp_get_BUS_clock_speed(void);
61
62rtems_isr_entry set_vector(
63 rtems_isr_entry handler,
64 rtems_vector_number vector,
65 int type
66);
67
68/*
69 * Interrupt assignments
70 * Highest-priority listed first
71 */
72#define FEC_IRQ_LEVEL 4
73
74#define PIT3_IRQ_LEVEL 4
75
76#define UART0_IRQ_LEVEL 3
77#define UART1_IRQ_LEVEL 3
78#define UART2_IRQ_LEVEL 3
79
80/*
81 * Prototypes for BSP methods which cross file boundaries
82 */
83void Init5329(void);
84
85#ifdef __cplusplus
86}
87#endif
88
91#endif
bspIo.h
Interface to Kernel Print Methods.
default-initial-extension.h
DEFAULT_INITIAL_EXTENSION Support.
rtems_vector_number
ISR_Vector_number rtems_vector_number
Control block type used to manage the vectors.
Definition: intr.h:47
vuint8
volatile unsigned char vuint8
Definition: bsp.h:40
rtems.h
config_s
Definition: deflate.c:115