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: 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: Interrupt support changes.
|
||||
|
||||
2010-04-30 Sebastian Huber <sebastian.huber@embedded-brains.de>
|
||||
|
||||
* make/custom/gp32.cfg: Use VFP floating point model.
|
||||
|
||||
@@ -14,6 +14,8 @@ include_HEADERS = include/bsp.h
|
||||
include_HEADERS += smc/smc.h
|
||||
include_HEADERS += ../../shared/include/tm27.h
|
||||
|
||||
include_bsp_HEADERS =
|
||||
|
||||
nodist_include_HEADERS = include/bspopts.h
|
||||
nodist_include_bsp_HEADERS = ../../shared/include/bootcard.h
|
||||
DISTCLEANFILES = include/bspopts.h
|
||||
@@ -38,6 +40,14 @@ libbsp_a_SOURCES += ../../shared/bsplibc.c ../../shared/bsppost.c \
|
||||
../../shared/gnatinstallhandler.c
|
||||
# console
|
||||
libbsp_a_SOURCES += console/uart.c ../../shared/console.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
|
||||
# abort
|
||||
libbsp_a_SOURCES += ../shared/abort/abort.c
|
||||
# smc
|
||||
|
||||
@@ -30,6 +30,8 @@ extern "C" {
|
||||
#include <rtems/clockdrv.h>
|
||||
#include <s3c24xx.h>
|
||||
|
||||
#define BSP_FEATURE_IRQ_EXTENSION
|
||||
|
||||
#define gp32_initButtons() {rPBCON=0x0;}
|
||||
#define gp32_getButtons() \
|
||||
( (((~rPEDAT >> 6) & 0x3 )<<8) | (((~rPBDAT >> 8) & 0xFF)<<0) )
|
||||
|
||||
@@ -69,3 +69,11 @@ $(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
|
||||
PREINSTALL_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
|
||||
|
||||
|
||||
@@ -15,13 +15,13 @@
|
||||
*/
|
||||
|
||||
#include <bsp.h>
|
||||
#include <bsp/irq-generic.h>
|
||||
#include <rtems/bspIo.h>
|
||||
#include <s3c24xx.h>
|
||||
|
||||
/*
|
||||
* External Prototypes
|
||||
*/
|
||||
extern void rtems_irq_mngt_init(void);
|
||||
extern void rtems_exception_init_mngt(void);
|
||||
|
||||
/*
|
||||
@@ -94,7 +94,9 @@ void bsp_start_default( void )
|
||||
/*
|
||||
* Init rtems interrupt management
|
||||
*/
|
||||
rtems_irq_mngt_init();
|
||||
if (bsp_interrupt_initialize() != RTEMS_SUCCESSFUL) {
|
||||
_CPU_Fatal_halt(0xe);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user