source: rtems/c/src/lib/libbsp/m68k/mcf52235/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.7 KB
Line 
1/*
2 *  mcf52235 BSP header file
3 */
4
5#ifndef LIBBSP_M68K_MCF52235_BSP_H
6#define LIBBSP_M68K_MCF52235_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 <mcf5223x/mcf5223x.h>
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25/* Declare base address of peripherals area */
26#define __IPSBAR ((vuint8 *) 0x40000000)
27
28/***************************************************************************/
29/**  Network driver configuration                                         **/
30
31/***************************************************************************/
32/**  User Definable configuration                                         **/
33
34/* define which port the console should use - all other ports are then defined as general purpose */
35#define CONSOLE_PORT        0
36
37/* externals */
38
39/* constants */
40
41/* functions */
42
43uint32_t bsp_get_CPU_clock_speed(void);
44
45rtems_isr_entry set_vector(
46  rtems_isr_entry     handler,
47  rtems_vector_number vector,
48  int                 type
49);
50
51/*
52 * Interrupt assignments
53 *  Highest-priority listed first
54 */
55
56#define PIT3_IRQ_LEVEL      4
57#define PIT3_IRQ_PRIORITY   0
58
59#define UART0_IRQ_LEVEL     3
60#define UART0_IRQ_PRIORITY  7
61#define UART1_IRQ_LEVEL     3
62#define UART1_IRQ_PRIORITY  6
63#define UART2_IRQ_LEVEL     3
64#define UART2_IRQ_PRIORITY  5
65
66/*
67 * Prototypes for BSP methods which cross file boundaries
68 */
69void Init52235(void);
70
71#ifdef __cplusplus
72}
73#endif
74
75#endif
Note: See TracBrowser for help on using the repository browser.