source: rtems/c/src/lib/libbsp/m68k/mcf5235/include/bsp.h @ 9cff822a

4.115
Last change on this file since 9cff822a was 9cff822a, checked in by Joel Sherrill <joel.sherrill@…>, on 07/16/15 at 15:40:05

Most bsp.h: Switch to LIBBSP_@CPU@_@BSP_FAMILY@_H for guard

This was done by the following script run from libbsp:

find * -name bsp.h | xargs -e grep -l "#ifndef.*_BSP_H" | while read b
do

echo $b
cpu=echo $b | cut -d'/' -f1 | tr '[:lower:]' '[:upper:]'
bsp=echo $b | cut -d'/' -f2 | tr '[:lower:]' '[:upper:]'
g="LIBBSP_${cpu}_${bsp}_BSP_H"
# echo $g
sed -e "s/ifndef _BSP_H/ifndef ${g}/" \

-e "s/define _BSP_H/define ${g}/" \

-i $b

done

  • Property mode set to 100644
File size: 1.9 KB
Line 
1/*
2 *  mcf5235 BSP header file
3 */
4
5#ifndef LIBBSP_M68K_MCF5235_BSP_H
6#define LIBBSP_M68K_MCF5235_BSP_H
7
8#include <bspopts.h>
9#include <bsp/default-initial-extension.h>
10#include <rtems.h>
11#include <rtems/iosupp.h>
12#include <rtems/console.h>
13#include <rtems/clockdrv.h>
14#include <rtems/iosupp.h>
15#include <rtems/bspIo.h>
16
17/***************************************************************************/
18/**  Hardware data structure headers                                      **/
19#include <mcf5235/mcf5235.h>   /* internal MCF5235 modules */
20
21#ifdef __cplusplus
22extern "C" {
23#endif
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.