Changeset dac3a526 in rtems


Ignore:
Timestamp:
May 7, 2012, 9:58:39 PM (7 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
19a3f50
Parents:
c3e7313
Message:

genmongoosev - Correct tm27.h to use PIC Interrupt Model

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/mips/genmongoosev/include/tm27.h

    rc3e7313 rdac3a526  
     1/**
     2 *  @file
     3 */
     4
    15/*
    2  *  tm27.h
    3  *
    46 *  The license and distribution terms for this file may be
    57 *  found in the file LICENSE in this distribution or at
    68 *  http://www.rtems.com/license/LICENSE.
    7  *
    8  *  $Id$
    99 */
    1010
     
    2020 */
    2121
     22#include <bsp/irq.h>
     23
    2224#define MUST_WAIT_FOR_INTERRUPT 1
    2325
    24 #if 1
    25 
    2626#define Install_tm27_vector( handler ) \
    27     (void) set_vector( handler, MONGOOSEV_IRQ_SOFTWARE_1, 1 );
     27   rtems_interrupt_handler_install( \
     28      MONGOOSEV_IRQ_SOFTWARE_1, "benchmark", 0, \
     29      (rtems_interrupt_handler)handler, NULL );
    2830
    2931#define Cause_tm27_intr()   assertSoftwareInterrupt(0);
     
    3234#define Lower_tm27_intr() /* empty */
    3335
    34 #else
    35 
    36 #define Install_tm27_vector( handler ) \
    37     (void) set_vector( handler, MONGOOSEV_IRQ_TIMER1, 1 );
    38 
    39 #define Cause_tm27_intr() \
    40   do { \
    41     ; \
    42   } while(0)
    43 
    44 #define Clear_tm27_intr() /* empty */
    45 
    46 #define Lower_tm27_intr() /* empty */
    47 
    4836#endif
    49 
    50 #endif
Note: See TracChangeset for help on using the changeset viewer.