Subversion Repositories DevTools

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
227 dpurdie 1
###############################################################################
2
# Copyright (c) ERG Electronics Ltd. 1996-2004
3
# 
4
# File:         PLATFORM/AVR_IAR
5
#
6
# Contents:     Support for the AVR chipset platform with a IAR toolset
7
#
8
# Revision History:
9
#   16-Aug-04   DDP     Created
10
#
11
###############################################################################
12
#
13
 
14
AVR_IARInit();
15
 
16
###############################################################################
17
#
18
#   This function is named after the invoking platform and the file that
19
#   this function is in. The two are bound.
20
#
21
#   The purpose of the xxxInit() is to provide platform-specfic support
22
#   to JATS. The function must do:
23
#
24
#       1) Parse any platform specific arguments
25
#          Arguments are specified with a PlatformRequire() statement
26
#       2) Define the toolset in use
27
#       3) Add flags and definitions as required
28
#
29
#
30
#   Note: Platform arguments are passed through in the Platform()
31
#         statement within a makefile.pl
32
#
33
#
34
sub AVR_IARInit
35
{
36
    my( @args ) = @ScmPlatformArgs;            # Platform arguments
37
    my( $mri, $product );
38
 
39
#.. Parse arguments
40
#
41
    Debug( "AVR_IAR(@args)\n" );
42
 
43
    foreach $_ ( @args ) {
44
        if (/^--product=(.*)/) {
45
            $product = $1;
46
        } else {
47
            Message( "AVR_IAR: unknown option $_ -- ignored\n" );
48
        }
49
    }
50
 
51
#... Toolset
52
#
53
    Toolset( '*', "avr_iar" );
54
 
55
#... Platform
56
#    
57
    PlatformDefines( "AVR_IAR.def" );
58
}
59