source: rtems/c/src/lib/libbsp/m68k/idp/timer/timerisr.S @ c3db3251

4.104.114.84.95
Last change on this file since c3db3251 was c3db3251, checked in by Joel Sherrill <joel.sherrill@…>, on 09/04/03 at 18:51:54

2003-09-04 Joel Sherrill <joel@…>

  • clock/ckinit.c, startup/bspstart.c, timer/timer.c, timer/timerisr.S: URL for license changed.
  • Property mode set to 100644
File size: 914 bytes
Line 
1/*  timer_isr()
2 *
3 *  This routine provides the ISR for the MC68230 timer on the Motorola
4 *  IDP board.   The timer is set up to generate an interrupt at maximum
5 *  intervals.
6 *
7 *  Code modified by Doug McBride, Colorado Space Grant College
8 *  countdown should be loaded automatically
9 *
10 *  Input parameters:  NONE
11 *
12 *  Output parameters:  NONE
13 *
14 *  COPYRIGHT (c) 1989-1999.
15 *  On-Line Applications Research Corporation (OAR).
16 *
17 *  The license and distribution terms for this file may be
18 *  found in the file LICENSE in this distribution or at
19 *  http://www.rtems.com/license/LICENSE.
20 *
21 *  $Id$
22 */
23
24#include "asm.h"
25
26BEGIN_CODE
27
28.set TSR,        0x00c0106B              | base address of PIT register "TSR"
29
30        PUBLIC (timerisr)
31SYM (timerisr):
32        movb    #1,TSR                                         | acknowledge interrupt
33        addql   #1, SYM (Ttimer_val)   | increment timer value
34        rte
35
36END_CODE
37END
Note: See TracBrowser for help on using the repository browser.