Changeset c3e7313 in rtems


Ignore:
Timestamp:
May 7, 2012, 9:58:20 PM (7 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
dac3a526
Parents:
865bffd1
Message:

csb350 - Correct tm27.h to use PIC Interrupt Model

File:
1 edited

Legend:

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

    r865bffd1 rc3e7313  
     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
     
    1515#ifndef __tm27_h
    1616#define __tm27_h
     17
     18#include <bsp/irq.h>
    1719
    1820/*
     
    2628
    2729#define Install_tm27_vector( handler ) \
    28    (void) set_vector(handler, AU1X00_IRQ_SW0, 1);
     30   rtems_interrupt_handler_install( \
     31      AU1X00_IRQ_SW0, "benchmark", 0, (rtems_interrupt_handler)handler, NULL );
    2932
    3033#define Cause_tm27_intr() \
     
    3841  } while(0)
    3942
    40 #if 0
    41 #define Lower_tm27_intr() \
    42   mips_enable_in_interrupt_mask( 0xff01 );
    43 #else
    4443#define Lower_tm27_intr() \
    4544  do { \
    4645     continue;\
    4746  } while(0)
    48 #endif
    4947
    5048#endif
Note: See TracChangeset for help on using the changeset viewer.