File: genlink.sed

package info (click to toggle)
msp430mcu 20120406-2
  • links: PTS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch, wheezy
  • size: 66,788 kB
  • ctags: 627,664
  • sloc: ansic: 605,160; python: 838; sh: 165; makefile: 37; sed: 2
file content (15 lines) | stat: -rw-r--r-- 583 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Copyright (c) 2011, Peter A. Bigot, licensed under New BSD (see COPYING)
# This file is part of msp430mcu (http://sourceforge.net/projects/mspgcc/)
#
# Ignore the IAR intrinsic file
/#include "in430.h"/d

# Replace the iomacros with inline definitions we can use to recognize
# register address assignments
/#include <iomacros.h>/c\
#define sfrb(x,x_) %regaddr.b x = x_\
#define sfrw(x,x_) %regaddr.w x = x_\
#define sfra(x,x_) %regaddr.a x = x_\
#define const_sfrb(x,x_) %regaddr.cb x = x_\
#define const_sfrw(x,x_) %regaddr.cw x = x_\
#define const_sfra(x,x_) %regaddr.ca x = x_