Subversion Repositories DevTools

Rev

Rev 5679 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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