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.0 KB
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @ingroup idp_bsp |
---|
5 | * |
---|
6 | * @brief This include file contains all Motorola 680x0 IDP board |
---|
7 | * IO definitions. |
---|
8 | */ |
---|
9 | |
---|
10 | #ifndef LIBBSP_M68K_IDP_BSP_H |
---|
11 | #define LIBBSP_M68K_IDP_BSP_H |
---|
12 | |
---|
13 | #include <bspopts.h> |
---|
14 | #include <bsp/default-initial-extension.h> |
---|
15 | |
---|
16 | #include <rtems.h> |
---|
17 | #include <rtems/console.h> |
---|
18 | #include <rtems/clockdrv.h> |
---|
19 | #include <rtems/motorola/mc68230.h> |
---|
20 | #include <rtems/motorola/mc68681.h> |
---|
21 | |
---|
22 | /** |
---|
23 | * @defgroup idp_bsp IO definitions |
---|
24 | * |
---|
25 | * @ingroup m68k_idp |
---|
26 | * |
---|
27 | * @brief Motorola 680x0 IDP board IO definitions |
---|
28 | */ |
---|
29 | |
---|
30 | #define DUART_ADDR 0xb00003 /* base address of the MC68681 DUART */ |
---|
31 | |
---|
32 | /* Constants */ |
---|
33 | |
---|
34 | #define RAM_START 0 |
---|
35 | #define RAM_END 0x200000 |
---|
36 | |
---|
37 | extern rtems_isr_entry M68Kvec[]; /* vector table address */ |
---|
38 | |
---|
39 | /* functions */ |
---|
40 | |
---|
41 | rtems_isr_entry set_vector( |
---|
42 | rtems_isr_entry handler, |
---|
43 | rtems_vector_number vector, |
---|
44 | int type |
---|
45 | ); |
---|
46 | |
---|
47 | void rtems_bsp_delay(int num); |
---|
48 | |
---|
49 | /* |
---|
50 | * Prototypes for methods inside the BSP that cross file boundaries. |
---|
51 | */ |
---|
52 | void init_pit( void ); |
---|
53 | void transmit_char( char ch ); |
---|
54 | void transmit_char_portb( char ch ); |
---|
55 | |
---|
56 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.