2004-04-21 Joel Sherrill <joel@OARcorp.com>

PR 611/bsps
	* Makefile.am, include/bsp.h, wrapup/Makefile.am: Follow conventions
	for tm27 and do not add another macro definition.
	* startup/tm27supp.c: New file.
This commit is contained in:
Joel Sherrill
2004-04-21 20:24:36 +00:00
parent 3344730a1a
commit 7312649847
5 changed files with 62 additions and 23 deletions

View File

@@ -1,3 +1,17 @@
2004-04-21 Joel Sherrill <joel@OARcorp.com>
PR 611/bsps
* Makefile.am, include/bsp.h, wrapup/Makefile.am: Follow conventions
for tm27 and do not add another macro definition.
* startup/tm27supp.c: New file.
2004-04-21 Joel Sherrill <joel@OARcorp.com>
PR 611/bsps
* Makefile.am, include/bsp.h, wrapup/Makefile.am: Follow conventions
for tm27 and do not add another macro definition.
* startup/tm27supp.c: New file.
2004-04-21 Ralf Corsepius <ralf_corsepius@rtems.org>
PR 613/bsps

View File

@@ -74,6 +74,22 @@ startup_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
noinst_DATA += startup$(LIB_VARIANT).rel
EXTRA_PROGRAMS += tm27supp.rel
CLEANFILES += tm27supp.rel
tm27supp_rel_SOURCES = startup/tm27supp.c
tm27supp_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_OPTIMIZE_V)
tm27supp_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
noinst_DATA += tm27supp$(LIB_VARIANT).rel
EXTRA_PROGRAMS += tm27supp_g.rel
CLEANFILES += tm27supp_g.rel
tm27supp_g_rel_SOURCES = $(tm27supp_rel_SOURCES)
tm27supp_g_rel_CPPFLAGS = $(AM_CPPFLAGS) $(CFLAGS_DEBUG_V)
tm27supp_g_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
noinst_DATA += tm27supp$(LIB_VARIANT).rel
all-local: $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
PREINSTALL_DIRS =

View File

@@ -84,30 +84,9 @@ extern volatile cpld_t cpld; /* defined in linkcmds */
#define MUST_WAIT_FOR_INTERRUPT 1
#define Declarations_for_tm27 \
void tm27On() \
{ \
} \
\
void tm27Off() \
{ \
} \
\
int tm27IsOn() \
{ \
return 1; \
} \
\
rtems_irq_connect_data tm27IrqData = { \
CPU_USIU_EXT_IRQ_7, \
(rtems_irq_hdl)0, \
(rtems_irq_enable)tm27On, \
(rtems_irq_disable)tm27Off, \
(rtems_irq_is_enabled)tm27IsOn \
};
#define Install_tm27_vector( handler ) \
{ \
extern rtems_irq_connect_data tm27IrqData; \
usiu.siel |= (1 << 17); \
usiu.sipend |= (1 << 17); \
\

View File

@@ -0,0 +1,29 @@
/*
* Support routines for TM27
*
* $Id$
*/
#include <bsp.h>
void tm27On()
{
}
void tm27Off()
{
}
int tm27IsOn()
{
return 1;
}
rtems_irq_connect_data tm27IrqData = {
CPU_USIU_EXT_IRQ_7,
(rtems_irq_hdl)0,
(rtems_irq_enable)tm27On,
(rtems_irq_disable)tm27Off,
(rtems_irq_is_enabled)tm27IsOn
};

View File

@@ -9,7 +9,8 @@ CLEANFILES = ../libbsp.a
___libbsp_a_SOURCES =
___libbsp_a_LIBADD = ../pclock$(LIB_VARIANT).rel \
../console$(LIB_VARIANT).rel ../startup$(LIB_VARIANT).rel
../console$(LIB_VARIANT).rel ../startup$(LIB_VARIANT).rel \
../tm27supp$(LIB_VARIANT).rel
___libbsp_a_LIBADD += \
../../../../libcpu/powerpc/shared/cpuIdent$(LIB_VARIANT).rel \