OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [lib/] [libbsp/] [m68k/] [dmv152/] [timer/] [timerisr.S] - Blame information for rev 173

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*  timer_isr()
2
 *
3
 *  This routine provides the ISR for the Z8536 timer on the DMV152
4
 *  board.   The timer is set up to generate an interrupt at maximum
5
 *  intervals.
6
 *
7
 *  Input parameters:  NONE
8
 *
9
 *  Output parameters:  NONE
10
 *
11
 *  COPYRIGHT (c) 1989-1999.
12
 *  On-Line Applications Research Corporation (OAR).
13
 *
14
 *  The license and distribution terms for this file may be
15
 *  found in the file LICENSE in this distribution or at
16
 *  http://www.OARcorp.com/rtems/license.html.
17
 *
18
 *  $Id: timerisr.S,v 1.2 2001-09-27 12:00:01 chris Exp $
19
 */
20
 
21
#include "asm.h"
22
 
23
BEGIN_CODE
24
 
25
.set TIMER,           0x0c000007         | port A
26
.set CT1_CMD_STATUS,  0x0a               | command status register
27
.set RELOAD,          0x26               | clr IP & IUS,allow countdown
28
 
29
        PUBLIC(timerisr)
30
SYM (timerisr):
31
        movb    #CT1_CMD_STATUS,TIMER    | set pointer to cmd status reg
32
        movb    #RELOAD,TIMER            | reload countdown
33
        addql   #1, SYM (Ttimer_val)     | increment timer value
34
        rte
35
 
36
END_CODE
37
END

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.