RTEMS 5.2
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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>
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
40typedef 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,
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
Interface to Kernel Print Methods.
DEFAULT_INITIAL_EXTENSION Support.
ISR_Vector_number rtems_vector_number
Control block type used to manage the vectors.
Definition: intr.h:47
rtems_isr_entry set_vector(rtems_isr_entry handler, rtems_vector_number vector, int type)
Install an interrupt handler.
Definition: setvec.c:28
volatile unsigned char vuint8
Definition: bsp.h:40
Definition: deflate.c:115