File: irq.py

package info (click to toggle)
simulavr 0.1.2.2-5
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,752 kB
  • ctags: 3,176
  • sloc: ansic: 19,987; sh: 3,623; python: 3,528; makefile: 390; asm: 308; yacc: 145; lex: 48
file content (15 lines) | stat: -rwxr-xr-x 314 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /usr/bin/env python
#
# $Id: irq.py,v 1.1 2003/11/29 09:43:14 troth Exp $
#
# Use this script to generate new gdb commands for telling the simulator to
# fire off an irq.
#

BASE_IRQ = 80

for i in range(1,35):
    print
    print "define irq_%d" % (i)
    print "  signal SIG%d" % (BASE_IRQ+i)
    print "end"