Enabled Ada95 interrupt support chapter and reformatted a

bunch of stuff to avoid line wrappings.
This commit is contained in:
Joel Sherrill
1999-10-25 16:32:13 +00:00
parent 8379ada798
commit 90d02e9973
6 changed files with 48 additions and 35 deletions

View File

@@ -19,8 +19,8 @@ COMMON_FILES=../common/cpright.texi ../common/setup.texi
GENERATED_FILES= \ GENERATED_FILES= \
intro.texi target.texi makefiles.texi linkcmds.texi support.texi \ intro.texi target.texi makefiles.texi linkcmds.texi support.texi \
init.texi console.texi clock.texi timer.texi rtc.texi nvmem.texi \ adaintr.texi init.texi console.texi clock.texi timer.texi rtc.texi \
network.texi shmsupp.texi analog.texi discrete.texi nvmem.texi network.texi shmsupp.texi analog.texi discrete.texi
FILES=$(PROJECT).texi $(GENERATED_FILES) FILES=$(PROJECT).texi $(GENERATED_FILES)
@@ -88,11 +88,16 @@ makefiles.texi: makefiles.t Makefile
linkcmds.texi: linkcmds.t Makefile linkcmds.texi: linkcmds.t Makefile
$(BMENU) -p "Makefiles Creating a New BSP Make Customization File" \ $(BMENU) -p "Makefiles Creating a New BSP Make Customization File" \
-u "Top" \
-n "Ada95 Interrupt Support" ${*}.t
adaintr.texi: adaintr.t Makefile
$(BMENU) -p "Linker Script Initialized Data" \
-u "Top" \ -u "Top" \
-n "Miscellaneous Support Files" ${*}.t -n "Miscellaneous Support Files" ${*}.t
support.texi: support.t Makefile support.texi: support.t Makefile
$(BMENU) -p "Linker Script Initialized Data" \ $(BMENU) -p "Ada95 Interrupt Support Version Requirements" \
-u "Top" \ -u "Top" \
-n "" ${*}.t -n "" ${*}.t

View File

@@ -67,6 +67,7 @@ END-INFO-DIR-ENTRY
@include makefiles.texi @include makefiles.texi
@include linkcmds.texi @include linkcmds.texi
@include support.texi @include support.texi
@include adaintr.texi
@include init.texi @include init.texi
@include console.texi @include console.texi
@include clock.texi @include clock.texi
@@ -90,6 +91,7 @@ This is the online version of the RTEMS BSP and Device Driver Development Guide.
* Makefiles:: * Makefiles::
* Linker Script:: * Linker Script::
* Miscellaneous Support Files:: * Miscellaneous Support Files::
* Ada95 Interrupt Support::
* Initialization Code:: * Initialization Code::
* Console Driver:: * Console Driver::
* Clock Driver:: * Clock Driver::
@@ -100,27 +102,27 @@ This is the online version of the RTEMS BSP and Device Driver Development Guide.
* Shared Memory Support Driver:: * Shared Memory Support Driver::
* Analog Driver:: * Analog Driver::
* Discrete Driver:: * Discrete Driver::
* Command and Variable Index::
* Concept Index::
@end menu @end menu
@c * Command and Variable Index::
@c * Concept Index::
@end ifinfo @end ifinfo
@c @c
@c @c
@c Need to copy the emacs stuff and "trailer stuff" (index, toc) into here @c Need to copy the emacs stuff and "trailer stuff" (index, toc) into here
@c @c
@c @node Command and Variable Index, Concept Index, Installing EGCS AND NEWLIB, Top @node Command and Variable Index, Concept Index, , Top
@c @unnumbered Command and Variable Index @unnumbered Command and Variable Index
@c There are currently no Command and Variable Index entries. There are currently no Command and Variable Index entries.
@c @printindex fn @c @printindex fn
@c @node Concept Index, , Command and Variable Index, Top @node Concept Index, , Command and Variable Index, Top
@c @unnumbered Concept Index @unnumbered Concept Index
@c There are currently no Concept Index entries. There are currently no Concept Index entries.
@c @printindex cp @c @printindex cp
@contents @contents

View File

@@ -268,7 +268,8 @@ usually consists of:
@item If interrupt driven, register the console interrupt routine to RTEMS: @item If interrupt driven, register the console interrupt routine to RTEMS:
@example @example
rtems_interrupt_catch (InterruptHandler,CONSOLE_VECTOR,&old_handler); rtems_interrupt_catch(
InterruptHandler, CONSOLE_VECTOR, &old_handler);
@end example @end example
@item enable the UART channels. @item enable the UART channels.

View File

@@ -129,17 +129,18 @@ RamSize = DEFINED(RamSize) ? RamSize : 4M;
/* /*
* Set the amount of RAM to be used for the application heap. Objects * Set the amount of RAM to be used for the application heap. Objects
* allocated using malloc() come from this area. Having a tight heap size * allocated using malloc() come from this area. Having a tight heap
* is somewhat difficult and multiple attempts to squeeze it may be needed * size is somewhat difficult and multiple attempts to squeeze it may
* reducing memory usage is important. If all objects are allocated from * be needed reducing memory usage is important. If all objects are
* the heap at system initialization time, this eases the sizing of the * allocated from the heap at system initialization time, this eases
* application heap. * the sizing of the application heap.
* *
* NOTE 1: The default may be overridden by passing an argument to ld. * NOTE 1: The default may be overridden by passing an argument to ld.
* *
* NOTE 2: The TCP/IP stack requires additional memory in the Heap. * NOTE 2: The TCP/IP stack requires additional memory in the Heap.
* *
* NOTE 3: The GNAT/RTEMS run-time requires additional memory in the Heap. * NOTE 3: The GNAT/RTEMS run-time requires additional memory in
* the Heap.
*/ */
HeapSize = DEFINED(HeapSize) ? HeapSize : 0x10000; HeapSize = DEFINED(HeapSize) ? HeapSize : 0x10000;
@@ -157,8 +158,9 @@ StackSize = DEFINED(StackSize) ? StackSize : 0x1000;
/* /*
* Starting addresses and length of RAM and ROM. * Starting addresses and length of RAM and ROM.
* *
* The addresses must be valid addresses on the board. The Chip Selects * The addresses must be valid addresses on the board. The
* should be initialized such that the code addresses are valid. * Chip Selects should be initialized such that the code addresses
* are valid.
*/ */
MEMORY @{ MEMORY @{
@@ -171,17 +173,18 @@ MEMORY @{
* for more details. * for more details.
*/ */
ETHERNET_ADDRESS = DEFINED(ETHERNET_ADDRESS) ? ETHERNET_ADDRESS : 0xDEAD12; ETHERNET_ADDRESS =
DEFINED(ETHERNET_ADDRESS) ? ETHERNET_ADDRESS : 0xDEAD12;
/* /*
* The following defines the order in which the sections should go. * The following defines the order in which the sections should go.
* It also defines a number of variables which can be used by the * It also defines a number of variables which can be used by the
* application program. * application program.
* *
* NOTE: Each variable appears with 1 or 2 leading underscores to insure * NOTE: Each variable appears with 1 or 2 leading underscores to
* that the variable is accessible from C code with a single * ensure that the variable is accessible from C code with a
* underscore. Some object formats automatically add a leading * single underscore. Some object formats automatically add
* underscore to all C global symbols. * a leading underscore to all C global symbols.
*/ */
SECTIONS @{ SECTIONS @{

View File

@@ -121,13 +121,15 @@ BSP_PIECES=startup clock console timer
CPU_PIECES= CPU_PIECES=
GENERIC_PIECES= GENERIC_PIECES=
# bummer; have to use $foreach since % pattern subst rules only replace 1x # bummer; have to use $foreach since % pattern subst
OBJS=$(foreach piece, $(BSP_PIECES), ../$(piece)/$(ARCH)/$(piece).rel) \ # rules only replace 1x
OBJS=$(foreach piece, $(BSP_PIECES), ../$(piece)/$(ARCH)/$(piece).o) \
$(foreach piece, $(CPU_PIECES), \ $(foreach piece, $(CPU_PIECES), \
../../../../libcpu/$(RTEMS_CPU)/$(piece)/$(ARCH)/$(piece).rel) \ ../../../../libcpu/$(RTEMS_CPU)/$(piece)/$(ARCH)/$(piece).o) \
$(wildcard \ $(wildcard \
../../../../libcpu/$(RTEMS_CPU)/$(RTEMS_CPU_MODEL)/fpsp/$(ARCH)/fpsp.rel) \ ../../../../libcpu/$(RTEMS_CPU)/$(RTEMS_CPU_MODEL)/fpsp/$(ARCH)/fpsp.rel) \
$(foreach piece, $(GENERIC_PIECES), ../../../$(piece)/$(ARCH)/$(piece).rel) $(foreach piece, \
$(GENERIC_PIECES), ../../../$(piece)/$(ARCH)/$(piece).o)
@end example @end example
The variable @code{OBJS} is the list of "pieces" expanded to include The variable @code{OBJS} is the list of "pieces" expanded to include