forked from Imagelibrary/rtems
2010-04-30 Sebastian Huber <sebastian.huber@embedded-brains.de>
* Makefile.am, preinstall.am: Added generic interrupt support modules. * include/bsp.h: Define BSP_FEATURE_IRQ_EXTENSION. * startup/bspstart.c, network/network.c: Interrupt support changes.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2010-04-30 Sebastian Huber <sebastian.huber@embedded-brains.de>
|
||||
|
||||
* Makefile.am, preinstall.am: Added generic interrupt support modules.
|
||||
* include/bsp.h: Define BSP_FEATURE_IRQ_EXTENSION.
|
||||
* startup/bspstart.c, network/network.c: Interrupt support changes.
|
||||
|
||||
2010-04-30 Sebastian Huber <sebastian.huber@embedded-brains.de>
|
||||
|
||||
* make/custom/csb337.cfg: Use VFP floating point model.
|
||||
|
||||
@@ -16,6 +16,8 @@ if ENABLE_LCD
|
||||
include_HEADERS += include/sed1356.h
|
||||
endif
|
||||
|
||||
include_bsp_HEADERS =
|
||||
|
||||
if ENABLE_UMON
|
||||
include_umondir = $(includedir)/umon
|
||||
include_umon_HEADERS = ../../shared/umon/cli.h
|
||||
@@ -60,6 +62,14 @@ libbsp_a_SOURCES = ../../shared/bsplibc.c ../../shared/bsppost.c \
|
||||
../../shared/gnatinstallhandler.c
|
||||
# console
|
||||
libbsp_a_SOURCES += ../../shared/console.c console/uarts.c
|
||||
# IRQ
|
||||
include_bsp_HEADERS += ../../shared/include/irq-generic.h \
|
||||
../../shared/include/irq-info.h
|
||||
libbsp_a_SOURCES += ../../shared/src/irq-generic.c \
|
||||
../../shared/src/irq-legacy.c \
|
||||
../../shared/src/irq-info.c \
|
||||
../../shared/src/irq-shell.c \
|
||||
../../shared/src/irq-server.c
|
||||
if ENABLE_LCD
|
||||
libbsp_a_SOURCES += console/sed1356.c console/fbcons.c
|
||||
endif
|
||||
|
||||
@@ -26,6 +26,7 @@ extern "C" {
|
||||
#include <rtems/clockdrv.h>
|
||||
#include <libchip/serial.h>
|
||||
|
||||
#define BSP_FEATURE_IRQ_EXTENSION
|
||||
|
||||
/* What is the input clock freq in hertz? */
|
||||
#define BSP_MAIN_FREQ 3686400 /* 3.6864 MHz */
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
#include <netinet/in.h>
|
||||
#include <netinet/if_ether.h>
|
||||
|
||||
#include <irq.h>
|
||||
#include <bsp/irq.h>
|
||||
#include <bspopts.h>
|
||||
|
||||
/* enable debugging of the PHY code */
|
||||
|
||||
@@ -106,3 +106,11 @@ $(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
|
||||
TMPINSTALL_FILES += $(PROJECT_LIB)/linkcmds
|
||||
|
||||
$(PROJECT_INCLUDE)/bsp/irq-generic.h: ../../shared/include/irq-generic.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/irq-generic.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/irq-generic.h
|
||||
|
||||
$(PROJECT_INCLUDE)/bsp/irq-info.h: ../../shared/include/irq-info.h $(PROJECT_INCLUDE)/bsp/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/bsp/irq-info.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/bsp/irq-info.h
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
*/
|
||||
|
||||
#include <bsp.h>
|
||||
#include <bsp/irq-generic.h>
|
||||
#include <at91rm9200.h>
|
||||
#include <at91rm9200_pmc.h>
|
||||
#include <at91rm9200_emac.h>
|
||||
@@ -24,7 +25,6 @@
|
||||
#include <at91rm9200_usart.h>
|
||||
|
||||
/* Function prototypes */
|
||||
extern void rtems_irq_mngt_init(void);
|
||||
extern void rtems_exception_init_mngt(void);
|
||||
void bsp_libc_init( void *, uint32_t, int );
|
||||
static void fix_mac_addr(void);
|
||||
@@ -65,7 +65,9 @@ void bsp_start_default( void )
|
||||
/*
|
||||
* Init rtems interrupt management
|
||||
*/
|
||||
rtems_irq_mngt_init();
|
||||
if (bsp_interrupt_initialize() != RTEMS_SUCCESSFUL) {
|
||||
_CPU_Fatal_halt(0xe);
|
||||
}
|
||||
|
||||
} /* bsp_start */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user