Changeset 52cfc7de in rtems


Ignore:
Timestamp:
Apr 22, 2004, 1:04:07 PM (16 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
2ee1495
Parents:
5e3745f
Message:

2004-04-22 Ralf Corsepius <ralf_corsepius@…>

  • include/bsp.h: Split out tmtest27 support.
  • include/tm27.h: New.
Location:
c/src/lib/libbsp/sh
Files:
5 added
10 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sh/gensh1/ChangeLog

    r5e3745f r52cfc7de  
     12004-04-22      Ralf Corsepius <ralf_corsepius@rtems.org>
     2
     3        * include/bsp.h: Split out tmtest27 support.
     4        * include/tm27.h: New.
     5
    162004-04-21      Ralf Corsepius <ralf_corsepius@rtems.org>
    27
  • c/src/lib/libbsp/sh/gensh1/include/bsp.h

    r5e3745f r52cfc7de  
    5656#endif
    5757
    58 /*
    59  *  Stuff for Time Test 27
    60  */
    61 
    62 #define MUST_WAIT_FOR_INTERRUPT 0
    63 
    64 #define Install_tm27_vector( handler ) \
    65 { \
    66   rtems_isr_entry ignored ; \
    67   rtems_interrupt_catch( (handler), 0, &ignored ) ; \
    68 }
    69 
    70 #define Cause_tm27_intr()
    71 
    72 #define Clear_tm27_intr()
    73 
    74 #define Lower_tm27_intr()
    75 
    7658/* Constants */
    7759
  • c/src/lib/libbsp/sh/gensh2/ChangeLog

    r5e3745f r52cfc7de  
     12004-04-22      Ralf Corsepius <ralf_corsepius@rtems.org>
     2
     3        * include/bsp.h: Split out tmtest27 support.
     4        * include/tm27.h: New.
     5
    162004-04-21      Ralf Corsepius <ralf_corsepius@rtems.org>
    27
  • c/src/lib/libbsp/sh/gensh2/include/bsp.h

    r5e3745f r52cfc7de  
    7272#endif
    7373
    74 /*
    75  *  Stuff for Time Test 27
    76  */
    77 
    78 #define MUST_WAIT_FOR_INTERRUPT 0
    79 
    80 #define Install_tm27_vector( handler ) \
    81 { \
    82   rtems_isr_entry ignored ; \
    83   rtems_interrupt_catch( (handler), 0, &ignored ) ; \
    84 }
    85 
    86 #define Cause_tm27_intr()
    87 
    88 #define Clear_tm27_intr()
    89 
    90 #define Lower_tm27_intr()
    91 
    9274/* Constants */
    9375
  • c/src/lib/libbsp/sh/gensh4/ChangeLog

    r5e3745f r52cfc7de  
     12004-04-22      Ralf Corsepius <ralf_corsepius@rtems.org>
     2
     3        * include/bsp.h: Split out tmtest27 support.
     4        * include/tm27.h: New.
     5
    162004-04-21      Ralf Corsepius <ralf_corsepius@rtems.org>
    27
  • c/src/lib/libbsp/sh/gensh4/include/bsp.h

    r5e3745f r52cfc7de  
    6161#define CONFIGURE_INTERRUPT_STACK_MEMORY  (4 * 1024)
    6262
    63 /*
    64  *  Stuff for Time Test 27
    65  */
    66 
    67 #define MUST_WAIT_FOR_INTERRUPT 1
    68 
    69 #ifndef SH7750_EVT_WDT_ITI
    70 #   error "..."
    71 #endif
    72 
    73 #define Install_tm27_vector( handler ) \
    74 { \
    75     rtems_isr_entry old_handler; \
    76     rtems_status_code status; \
    77     status = rtems_interrupt_catch( (handler), \
    78             SH7750_EVT_TO_NUM(SH7750_EVT_WDT_ITI), &old_handler); \
    79     if (status != RTEMS_SUCCESSFUL) \
    80         printf("Status of rtems_interrupt_catch = %d", status); \
    81 }
    82 
    83 #define Cause_tm27_intr() \
    84 { \
    85     *(volatile uint16_t*)SH7750_IPRB |= 0xf000; \
    86     *(volatile uint16_t*)SH7750_WTCSR = SH7750_WTCSR_KEY; \
    87     *(volatile uint16_t*)SH7750_WTCNT = SH7750_WTCNT_KEY | 0xfe; \
    88     *(volatile uint16_t*)SH7750_WTCSR = \
    89                             SH7750_WTCSR_KEY | SH7750_WTCSR_TME; \
    90 }
    91 
    92 #define Clear_tm27_intr() \
    93 { \
    94     *(volatile uint16_t*)SH7750_WTCSR = SH7750_WTCSR_KEY; \
    95 }
    96 
    97 #define Lower_tm27_intr() \
    98 { \
    99     sh_set_interrupt_level((SH7750_IPRB & 0xf000) << SH4_SR_IMASK_S); \
    100 }
    101 
    10263/* Constants */
    10364
  • c/src/lib/libbsp/sh/shsim/ChangeLog

    r5e3745f r52cfc7de  
     12004-04-22      Ralf Corsepius <ralf_corsepius@rtems.org>
     2
     3        * include/bsp.h: Split out tmtest27 support.
     4        * include/tm27.h: New.
     5
    162004-04-21      Ralf Corsepius <ralf_corsepius@rtems.org>
    27
  • c/src/lib/libbsp/sh/shsim/include/bsp.h

    r5e3745f r52cfc7de  
    4949#include <gdbsci.h>
    5050#include <rtems/devnull.h>
    51 
    52 /*
    53  *  Stuff for Time Test 27
    54  *
    55  * FIXME: This should not be here.
    56  */
    57 
    58 #define MUST_WAIT_FOR_INTERRUPT 0
    59 
    60 #define Install_tm27_vector( handler )
    61 #define Cause_tm27_intr()
    62 #define Clear_tm27_intr()
    6351
    6452/* Constants */
  • c/src/lib/libbsp/sh/simsh4/ChangeLog

    r5e3745f r52cfc7de  
     12004-04-22      Ralf Corsepius <ralf_corsepius@rtems.org>
     2
     3        * include/bsp.h: Split out tmtest27 support.
     4        * include/tm27.h: New.
     5
    162004-04-21      Ralf Corsepius <ralf_corsepius@rtems.org>
    27
  • c/src/lib/libbsp/sh/simsh4/include/bsp.h

    r5e3745f r52cfc7de  
    6565#define CLOCK_VECTOR 32
    6666
    67 /*
    68  *  Stuff for Time Test 27
    69  */
    70 
    71 #define MUST_WAIT_FOR_INTERRUPT 0
    72 
    73 #define Install_tm27_vector( handler ) \
    74 { \
    75   rtems_isr_entry ignored ; \
    76   rtems_interrupt_catch( (handler), 0, &ignored ) ; \
    77 }
    78 
    79 #define Cause_tm27_intr()
    80 
    81 #define Clear_tm27_intr()
    82 
    83 #define Lower_tm27_intr()
    84 
    8567/* Constants */
    8668
Note: See TracChangeset for help on using the changeset viewer.