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

4.115
Last change on this file since c499856 was c499856, checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47

Change all references of rtems.com to rtems.org.

  • Property mode set to 100644
File size: 908 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.org/license/LICENSE.
20 */
21
22#include <rtems/asm.h>
23
24BEGIN_CODE
25
26.set TSR,        0x00c0106B              | base address of PIT register "TSR"
27
28        PUBLIC (timerisr)
29SYM (timerisr):
30        movb    #1,TSR                                         | acknowledge interrupt
31        addql   #1, SYM (Ttimer_val)   | increment timer value
32        rte
33
34END_CODE
35END
Note: See TracBrowser for help on using the repository browser.