forked from Imagelibrary/rtems
2004-04-22 Ralf Corsepius <ralf_corsepius@rtems.org>
* include/bsp.h: Split out tmtest27 support. * include/tm27.h: New.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2004-04-22 Ralf Corsepius <ralf_corsepius@rtems.org>
|
||||||
|
|
||||||
|
* include/bsp.h: Split out tmtest27 support.
|
||||||
|
* include/tm27.h: New.
|
||||||
|
|
||||||
2004-04-21 Ralf Corsepius <ralf_corsepius@rtems.org>
|
2004-04-21 Ralf Corsepius <ralf_corsepius@rtems.org>
|
||||||
|
|
||||||
PR 613/bsps
|
PR 613/bsps
|
||||||
|
|||||||
@@ -55,24 +55,6 @@ extern "C" {
|
|||||||
#define BSP_CONSOLE_DRIVER_TABLE_ENTRY DEVSCI_DRIVER_TABLE_ENTRY
|
#define BSP_CONSOLE_DRIVER_TABLE_ENTRY DEVSCI_DRIVER_TABLE_ENTRY
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
|
||||||
* Stuff for Time Test 27
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define MUST_WAIT_FOR_INTERRUPT 0
|
|
||||||
|
|
||||||
#define Install_tm27_vector( handler ) \
|
|
||||||
{ \
|
|
||||||
rtems_isr_entry ignored ; \
|
|
||||||
rtems_interrupt_catch( (handler), 0, &ignored ) ; \
|
|
||||||
}
|
|
||||||
|
|
||||||
#define Cause_tm27_intr()
|
|
||||||
|
|
||||||
#define Clear_tm27_intr()
|
|
||||||
|
|
||||||
#define Lower_tm27_intr()
|
|
||||||
|
|
||||||
/* Constants */
|
/* Constants */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
38
c/src/lib/libbsp/sh/gensh1/include/tm27.h
Normal file
38
c/src/lib/libbsp/sh/gensh1/include/tm27.h
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
/*
|
||||||
|
* tm27.h
|
||||||
|
*
|
||||||
|
* The license and distribution terms for this file may be
|
||||||
|
* found in the file LICENSE in this distribution or at
|
||||||
|
* http://www.rtems.com/license/LICENSE.
|
||||||
|
*
|
||||||
|
* $Id$
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef _TMTEST27
|
||||||
|
#error "This is an RTEMS internal file you must not include directly."
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef __tm27_h
|
||||||
|
#define __tm27_h
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Stuff for Time Test 27
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define MUST_WAIT_FOR_INTERRUPT 0
|
||||||
|
|
||||||
|
#define Install_tm27_vector( handler ) \
|
||||||
|
{ \
|
||||||
|
rtems_isr_entry ignored ; \
|
||||||
|
rtems_interrupt_catch( (handler), 0, &ignored ) ; \
|
||||||
|
}
|
||||||
|
|
||||||
|
#define Cause_tm27_intr()
|
||||||
|
|
||||||
|
#define Clear_tm27_intr()
|
||||||
|
|
||||||
|
#define Lower_tm27_intr()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#endif
|
||||||
@@ -1,3 +1,8 @@
|
|||||||
|
2004-04-22 Ralf Corsepius <ralf_corsepius@rtems.org>
|
||||||
|
|
||||||
|
* include/bsp.h: Split out tmtest27 support.
|
||||||
|
* include/tm27.h: New.
|
||||||
|
|
||||||
2004-04-21 Ralf Corsepius <ralf_corsepius@rtems.org>
|
2004-04-21 Ralf Corsepius <ralf_corsepius@rtems.org>
|
||||||
|
|
||||||
PR 613/bsps
|
PR 613/bsps
|
||||||
|
|||||||
@@ -71,24 +71,6 @@ extern "C" {
|
|||||||
#define BSP_CONSOLE_DEVICE_TERMIOS_HANDLERS (sh_sci_get_termios_handlers(TRUE))
|
#define BSP_CONSOLE_DEVICE_TERMIOS_HANDLERS (sh_sci_get_termios_handlers(TRUE))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
|
||||||
* Stuff for Time Test 27
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define MUST_WAIT_FOR_INTERRUPT 0
|
|
||||||
|
|
||||||
#define Install_tm27_vector( handler ) \
|
|
||||||
{ \
|
|
||||||
rtems_isr_entry ignored ; \
|
|
||||||
rtems_interrupt_catch( (handler), 0, &ignored ) ; \
|
|
||||||
}
|
|
||||||
|
|
||||||
#define Cause_tm27_intr()
|
|
||||||
|
|
||||||
#define Clear_tm27_intr()
|
|
||||||
|
|
||||||
#define Lower_tm27_intr()
|
|
||||||
|
|
||||||
/* Constants */
|
/* Constants */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
38
c/src/lib/libbsp/sh/gensh2/include/tm27.h
Normal file
38
c/src/lib/libbsp/sh/gensh2/include/tm27.h
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
/*
|
||||||
|
* tm27.h
|
||||||
|
*
|
||||||
|
* The license and distribution terms for this file may be
|
||||||
|
* found in the file LICENSE in this distribution or at
|
||||||
|
* http://www.rtems.com/license/LICENSE.
|
||||||
|
*
|
||||||
|
* $Id$
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef _TMTEST27
|
||||||
|
#error "This is an RTEMS internal file you must not include directly."
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef __tm27_h
|
||||||
|
#define __tm27_h
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Stuff for Time Test 27
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define MUST_WAIT_FOR_INTERRUPT 0
|
||||||
|
|
||||||
|
#define Install_tm27_vector( handler ) \
|
||||||
|
{ \
|
||||||
|
rtems_isr_entry ignored ; \
|
||||||
|
rtems_interrupt_catch( (handler), 0, &ignored ) ; \
|
||||||
|
}
|
||||||
|
|
||||||
|
#define Cause_tm27_intr()
|
||||||
|
|
||||||
|
#define Clear_tm27_intr()
|
||||||
|
|
||||||
|
#define Lower_tm27_intr()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#endif
|
||||||
@@ -1,3 +1,8 @@
|
|||||||
|
2004-04-22 Ralf Corsepius <ralf_corsepius@rtems.org>
|
||||||
|
|
||||||
|
* include/bsp.h: Split out tmtest27 support.
|
||||||
|
* include/tm27.h: New.
|
||||||
|
|
||||||
2004-04-21 Ralf Corsepius <ralf_corsepius@rtems.org>
|
2004-04-21 Ralf Corsepius <ralf_corsepius@rtems.org>
|
||||||
|
|
||||||
PR 613/bsps
|
PR 613/bsps
|
||||||
|
|||||||
@@ -60,45 +60,6 @@ extern "C" {
|
|||||||
/* #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 */
|
/* #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2 */
|
||||||
#define CONFIGURE_INTERRUPT_STACK_MEMORY (4 * 1024)
|
#define CONFIGURE_INTERRUPT_STACK_MEMORY (4 * 1024)
|
||||||
|
|
||||||
/*
|
|
||||||
* Stuff for Time Test 27
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define MUST_WAIT_FOR_INTERRUPT 1
|
|
||||||
|
|
||||||
#ifndef SH7750_EVT_WDT_ITI
|
|
||||||
# error "..."
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define Install_tm27_vector( handler ) \
|
|
||||||
{ \
|
|
||||||
rtems_isr_entry old_handler; \
|
|
||||||
rtems_status_code status; \
|
|
||||||
status = rtems_interrupt_catch( (handler), \
|
|
||||||
SH7750_EVT_TO_NUM(SH7750_EVT_WDT_ITI), &old_handler); \
|
|
||||||
if (status != RTEMS_SUCCESSFUL) \
|
|
||||||
printf("Status of rtems_interrupt_catch = %d", status); \
|
|
||||||
}
|
|
||||||
|
|
||||||
#define Cause_tm27_intr() \
|
|
||||||
{ \
|
|
||||||
*(volatile uint16_t*)SH7750_IPRB |= 0xf000; \
|
|
||||||
*(volatile uint16_t*)SH7750_WTCSR = SH7750_WTCSR_KEY; \
|
|
||||||
*(volatile uint16_t*)SH7750_WTCNT = SH7750_WTCNT_KEY | 0xfe; \
|
|
||||||
*(volatile uint16_t*)SH7750_WTCSR = \
|
|
||||||
SH7750_WTCSR_KEY | SH7750_WTCSR_TME; \
|
|
||||||
}
|
|
||||||
|
|
||||||
#define Clear_tm27_intr() \
|
|
||||||
{ \
|
|
||||||
*(volatile uint16_t*)SH7750_WTCSR = SH7750_WTCSR_KEY; \
|
|
||||||
}
|
|
||||||
|
|
||||||
#define Lower_tm27_intr() \
|
|
||||||
{ \
|
|
||||||
sh_set_interrupt_level((SH7750_IPRB & 0xf000) << SH4_SR_IMASK_S); \
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Constants */
|
/* Constants */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
59
c/src/lib/libbsp/sh/gensh4/include/tm27.h
Normal file
59
c/src/lib/libbsp/sh/gensh4/include/tm27.h
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
/*
|
||||||
|
* tm27.h
|
||||||
|
*
|
||||||
|
* The license and distribution terms for this file may be
|
||||||
|
* found in the file LICENSE in this distribution or at
|
||||||
|
* http://www.rtems.com/license/LICENSE.
|
||||||
|
*
|
||||||
|
* $Id$
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef _TMTEST27
|
||||||
|
#error "This is an RTEMS internal file you must not include directly."
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef __tm27_h
|
||||||
|
#define __tm27_h
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Stuff for Time Test 27
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define MUST_WAIT_FOR_INTERRUPT 1
|
||||||
|
|
||||||
|
#ifndef SH7750_EVT_WDT_ITI
|
||||||
|
# error "..."
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define Install_tm27_vector( handler ) \
|
||||||
|
{ \
|
||||||
|
rtems_isr_entry old_handler; \
|
||||||
|
rtems_status_code status; \
|
||||||
|
status = rtems_interrupt_catch( (handler), \
|
||||||
|
SH7750_EVT_TO_NUM(SH7750_EVT_WDT_ITI), &old_handler); \
|
||||||
|
if (status != RTEMS_SUCCESSFUL) \
|
||||||
|
printf("Status of rtems_interrupt_catch = %d", status); \
|
||||||
|
}
|
||||||
|
|
||||||
|
#define Cause_tm27_intr() \
|
||||||
|
{ \
|
||||||
|
*(volatile uint16_t*)SH7750_IPRB |= 0xf000; \
|
||||||
|
*(volatile uint16_t*)SH7750_WTCSR = SH7750_WTCSR_KEY; \
|
||||||
|
*(volatile uint16_t*)SH7750_WTCNT = SH7750_WTCNT_KEY | 0xfe; \
|
||||||
|
*(volatile uint16_t*)SH7750_WTCSR = \
|
||||||
|
SH7750_WTCSR_KEY | SH7750_WTCSR_TME; \
|
||||||
|
}
|
||||||
|
|
||||||
|
#define Clear_tm27_intr() \
|
||||||
|
{ \
|
||||||
|
*(volatile uint16_t*)SH7750_WTCSR = SH7750_WTCSR_KEY; \
|
||||||
|
}
|
||||||
|
|
||||||
|
#define Lower_tm27_intr() \
|
||||||
|
{ \
|
||||||
|
sh_set_interrupt_level((SH7750_IPRB & 0xf000) << SH4_SR_IMASK_S); \
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#endif
|
||||||
@@ -1,3 +1,8 @@
|
|||||||
|
2004-04-22 Ralf Corsepius <ralf_corsepius@rtems.org>
|
||||||
|
|
||||||
|
* include/bsp.h: Split out tmtest27 support.
|
||||||
|
* include/tm27.h: New.
|
||||||
|
|
||||||
2004-04-21 Ralf Corsepius <ralf_corsepius@rtems.org>
|
2004-04-21 Ralf Corsepius <ralf_corsepius@rtems.org>
|
||||||
|
|
||||||
PR 613/bsps
|
PR 613/bsps
|
||||||
|
|||||||
@@ -49,18 +49,6 @@ extern "C" {
|
|||||||
#include <gdbsci.h>
|
#include <gdbsci.h>
|
||||||
#include <rtems/devnull.h>
|
#include <rtems/devnull.h>
|
||||||
|
|
||||||
/*
|
|
||||||
* Stuff for Time Test 27
|
|
||||||
*
|
|
||||||
* FIXME: This should not be here.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define MUST_WAIT_FOR_INTERRUPT 0
|
|
||||||
|
|
||||||
#define Install_tm27_vector( handler )
|
|
||||||
#define Cause_tm27_intr()
|
|
||||||
#define Clear_tm27_intr()
|
|
||||||
|
|
||||||
/* Constants */
|
/* Constants */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
32
c/src/lib/libbsp/sh/shsim/include/tm27.h
Normal file
32
c/src/lib/libbsp/sh/shsim/include/tm27.h
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
/*
|
||||||
|
* tm27.h
|
||||||
|
*
|
||||||
|
* The license and distribution terms for this file may be
|
||||||
|
* found in the file LICENSE in this distribution or at
|
||||||
|
* http://www.rtems.com/license/LICENSE.
|
||||||
|
*
|
||||||
|
* $Id$
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef _TMTEST27
|
||||||
|
#error "This is an RTEMS internal file you must not include directly."
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef __tm27_h
|
||||||
|
#define __tm27_h
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Stuff for Time Test 27
|
||||||
|
*
|
||||||
|
* FIXME: This should not be here.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define MUST_WAIT_FOR_INTERRUPT 0
|
||||||
|
|
||||||
|
#define Install_tm27_vector( handler )
|
||||||
|
#define Cause_tm27_intr()
|
||||||
|
#define Clear_tm27_intr()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#endif
|
||||||
@@ -1,3 +1,8 @@
|
|||||||
|
2004-04-22 Ralf Corsepius <ralf_corsepius@rtems.org>
|
||||||
|
|
||||||
|
* include/bsp.h: Split out tmtest27 support.
|
||||||
|
* include/tm27.h: New.
|
||||||
|
|
||||||
2004-04-21 Ralf Corsepius <ralf_corsepius@rtems.org>
|
2004-04-21 Ralf Corsepius <ralf_corsepius@rtems.org>
|
||||||
|
|
||||||
PR 613/bsps
|
PR 613/bsps
|
||||||
|
|||||||
@@ -64,24 +64,6 @@ extern "C" {
|
|||||||
/* !!! Should be defined in accordance to simulator considerations.*/
|
/* !!! Should be defined in accordance to simulator considerations.*/
|
||||||
#define CLOCK_VECTOR 32
|
#define CLOCK_VECTOR 32
|
||||||
|
|
||||||
/*
|
|
||||||
* Stuff for Time Test 27
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define MUST_WAIT_FOR_INTERRUPT 0
|
|
||||||
|
|
||||||
#define Install_tm27_vector( handler ) \
|
|
||||||
{ \
|
|
||||||
rtems_isr_entry ignored ; \
|
|
||||||
rtems_interrupt_catch( (handler), 0, &ignored ) ; \
|
|
||||||
}
|
|
||||||
|
|
||||||
#define Cause_tm27_intr()
|
|
||||||
|
|
||||||
#define Clear_tm27_intr()
|
|
||||||
|
|
||||||
#define Lower_tm27_intr()
|
|
||||||
|
|
||||||
/* Constants */
|
/* Constants */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
38
c/src/lib/libbsp/sh/simsh4/include/tm27.h
Normal file
38
c/src/lib/libbsp/sh/simsh4/include/tm27.h
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
/*
|
||||||
|
* tm27.h
|
||||||
|
*
|
||||||
|
* The license and distribution terms for this file may be
|
||||||
|
* found in the file LICENSE in this distribution or at
|
||||||
|
* http://www.rtems.com/license/LICENSE.
|
||||||
|
*
|
||||||
|
* $Id$
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef _TMTEST27
|
||||||
|
#error "This is an RTEMS internal file you must not include directly."
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef __tm27_h
|
||||||
|
#define __tm27_h
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Stuff for Time Test 27
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define MUST_WAIT_FOR_INTERRUPT 0
|
||||||
|
|
||||||
|
#define Install_tm27_vector( handler ) \
|
||||||
|
{ \
|
||||||
|
rtems_isr_entry ignored ; \
|
||||||
|
rtems_interrupt_catch( (handler), 0, &ignored ) ; \
|
||||||
|
}
|
||||||
|
|
||||||
|
#define Cause_tm27_intr()
|
||||||
|
|
||||||
|
#define Clear_tm27_intr()
|
||||||
|
|
||||||
|
#define Lower_tm27_intr()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#endif
|
||||||
Reference in New Issue
Block a user