Changeset 19a3f50 in rtems


Ignore:
Timestamp:
May 7, 2012, 10:02:07 PM (7 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
bc96bad6
Parents:
dac3a526
Message:

jmr3904 - Correct tm27.h to use PIC Interrupt Model

File:
1 edited

Legend:

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

    rdac3a526 r19a3f50  
     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 0
    2526#define Install_tm27_vector( handler ) \
    26     (void) set_vector( handler, TX3904_IRQ_SOFTWARE_1, 1 ); \
    27 
    28 #define Cause_tm27_intr() \
    29     __asm__ volatile ( "syscall 0x01" : : );
    30 
    31 #define CLOCK_VECTOR TX3904_IRQ_TMR0
    32 
    33 #define Clear_tm27_intr() /* empty */
    34 
    35 #define Lower_tm27_intr() /* empty */
    36 #else
    37 #define Install_tm27_vector( handler ) \
    38     (void) set_vector( handler, TX3904_IRQ_TMR0, 1 ); \
     27   rtems_interrupt_handler_install( \
     28      TX3904_IRQ_TMR0, "benchmark", 0, \
     29      (rtems_interrupt_handler)handler, NULL );
    3930
    4031#define Cause_tm27_intr() \
     
    6051
    6152#endif
    62 
    63 #endif
Note: See TracChangeset for help on using the changeset viewer.