Subversion Repositories DevTools

Rev

Rev 5679 | Rev 5726 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5679 Rev 5680
Line 63... Line 63...
63
 
63
 
64
    #
64
    #
65
    #   Definitions common to all products
65
    #   Definitions common to all products
66
    #   These will be picked up when no platform has been defined
66
    #   These will be picked up when no platform has been defined
67
    #
67
    #
68
 
-
 
69
    push @defines, 'JATS_BUILD';
68
    push @defines, 'JATS_BUILD';
70
    push @dirs,    '$(COMPILER_HOME_AVR)/inc/clib';
69
    push @dirs,    '$(COMPILER_HOME_AVR)/inc/c';
71
    push @dirs,    '$(COMPILER_HOME_AVR)/inc';
70
    push @dirs,    '$(COMPILER_HOME_AVR)/inc';
72
 
71
 
73
    #
72
    #
74
    #   Platform specific definitions
73
    #   Platform specific definitions
75
    #
74
    #
76
    if ( $product eq "MS6001" )
75
    if ( $product eq "MS6001" )
77
    {
76
    {
78
        $productFound = $product;
77
        $productFound = $product;
79
#push @flags , '--eeprom_size=32768';
78
        #push @flags , '--eeprom_size=32768';
80
Warning("TODO: eeprom size");
-
 
81
 
79
 
82
        #   Compiler flags and definitions
80
        #   Compiler flags and definitions
83
        push @defines, '_MS6001';
81
        push @defines, '_MS6001';
84
 
82
 
85
        #   Assembler flags and definitions
83
        #   Assembler flags and definitions
Line 95... Line 93...
95
    {
93
    {
96
        #
94
        #
97
        #   Compiler flags and definitions
95
        #   Compiler flags and definitions
98
        #
96
        #
99
Warning("TODO: Compiler Flags");
97
Warning("TODO: Compiler Flags");
100
#       push @flags , '-v6';
98
       push @flags , '--endian=little';
101
#       push @flags , '-ms';
99
       push @flags , '--cpu=Cortex-M3';
-
 
100
       push @flags , '--diag_suppress=Pa050';
102
#       push @flags , '-y';
101
       push @flags , '-e';
103
#       push @flags , '--enhanced_core';
102
       push @flags , '--fpu=None';
104
#       push @flags , '--diag_suppress=pa050';
103
       push @flags , '-Oh';
105
#       push @flags , '--initializers_in_flash';
104
       push @flags , '--vla';
106
#       push @flags , '--require_prototypes';
105
       push @flags , '--require_prototypes';
-
 
106
#       push @flags , '--dlib_config=$(COMPILER_HOME_AVR)\INC\c\DLib_Config_Normal.h';
-
 
107
       push @flags , '--dlib_config=DLib_Config_Normal.h';
-
 
108
 
107
 
109
 
-
 
110
       # Defines
108
        push @defines, '_EEP_EOW_MODE=IDLE_EEP_WRITE';
111
       #push @defines, '_EEP_EOW_MODE=IDLE_EEP_WRITE';
109
 
112
 
110
 
113
 
111
        #
114
        #
112
        #   Assembler flags and definitions
115
        #   Assembler flags and definitions
113
        #
116
        #
Line 115... Line 118...
115
#       push @asflags , '-v6';                  # processor configuration
118
#       push @asflags , '-v6';                  # processor configuration
116
#       push @asflags , '-s+';                  # Case-sensitive user symbols
119
#       push @asflags , '-s+';                  # Case-sensitive user symbols
117
#       push @asflags , '-t8';                  # tab spacing...
120
#       push @asflags , '-t8';                  # tab spacing...
118
#       push @asflags , '-u_enhancedCore';      # enable AVR-specific enhanced instructions
121
#       push @asflags , '-u_enhancedCore';      # enable AVR-specific enhanced instructions
119
 
122
 
120
        push @asdefines, '__MEMORY_MODEL__=2';
123
#       push @asdefines, '__MEMORY_MODEL__=2';
121
        push @asdefines, '__HAS_ELPM__=1 ';
124
#       push @asdefines, '__HAS_ELPM__=1 ';
122
        push @asdefines, '__HAS_ENHANCED_CORE__=1 ';
125
#       push @asdefines, '__HAS_ENHANCED_CORE__=1 ';
123
        push @asdefines, 'ASSEMBLER';
126
#       push @asdefines, 'ASSEMBLER';
124
    }
127
    }
125
 
128
 
126
    #.. Standard.rul requirements
129
    #.. Standard.rul requirements
127
    #
130
    #
128
    $s = 's90';             # Assembler source file
131
    $s = 's90';             # Assembler source file
Line 140... Line 143...
140
    $::ScmToolsetGenerate = 0;                    # generate optional
143
    $::ScmToolsetGenerate = 0;                    # generate optional
141
    $::ScmToolsetProgDependancies = 0;            # handle Prog dependancies myself
144
    $::ScmToolsetProgDependancies = 0;            # handle Prog dependancies myself
142
 
145
 
143
#.. Cleanup rules
146
#.. Cleanup rules
144
#
147
#
145
#   9 Files that appear to be created by the USB licence dongle
148
#   Files that appear to be created by the compiler
146
#
149
#
147
Warning("TODO: Generated File List");
150
Warning("TODO: Generated File List");
148
    ToolsetGenerate( "clauth1.dll" );
-
 
149
    ToolsetGenerate( "clauth2.dll" );
-
 
150
    ToolsetGenerate( "lsprst7.dll" );
-
 
151
    ToolsetGenerate( "lsprst7.tgz" );
151
   ToolsetGenerate( '$(OBJDIR)/tmp*' );
152
    ToolsetGenerate( "ssprs.dll" );
-
 
153
    ToolsetGenerate( "ssprs.tgz" );
-
 
154
    ToolsetGenerate( "sysprs7.dll" );
-
 
155
    ToolsetGenerate( "sysprs7.tgz" );
152
   ToolsetGenerate( '$(LIBDIR)/tmp*' );
156
    ToolsetGenerate( "tmpPrst.tgz" );
153
   ToolsetGenerate( '$(BINDIR)/tmp*' );
157
 
-
 
158
 
154
 
159
    #.. Define IAR environment
155
    #.. Define IAR environment
160
    #
156
    #
161
    #
157
    #
162
    #   Define initialisation targets
158
    #   Define initialisation targets