Browse Source

+ avrsim6 controller type

florian 10 tháng trước cách đây
mục cha
commit
a685e2aa5a
2 tập tin đã thay đổi với 15 bổ sung1 xóa
  1. 14 0
      compiler/avr/cpuinfo.pas
  2. 1 1
      compiler/options.pas

+ 14 - 0
compiler/avr/cpuinfo.pas

@@ -59,6 +59,7 @@ Type
      (ct_none,
 
       ct_avrsim,
+      ct_avrsim6,
 
       ct_at90can32,
       ct_at90can64,
@@ -358,6 +359,19 @@ Const
         sramsize:32*1024;
         eeprombase:0;
         eepromsize:4096;
+        ),
+        (
+        controllertypestr:'AVRSIM6';
+        controllerunitstr:'AVRSIM';
+
+        cputype: cpu_avr6;
+        fputype: fpu_soft;
+        flashbase:0;
+        flashsize:$400000;
+        srambase:256;
+        sramsize:60*1024;
+        eeprombase:0;
+        eepromsize:4096;
         )
         ,(controllertypestr:'AT90CAN32';controllerunitstr:'AT90CAN32';cputype:cpu_avr5;fputype:fpu_soft;flashbase:0;flashsize:32768;srambase:256;sramsize:2048;eeprombase:0;eepromsize:1024;bootbase:24576;bootsize:8192)
         ,(controllertypestr:'AT90CAN64';controllerunitstr:'AT90CAN64';cputype:cpu_avr5;fputype:fpu_soft;flashbase:0;flashsize:65536;srambase:256;sramsize:4096;eeprombase:0;eepromsize:2048;bootbase:57344;bootsize:8192)

+ 1 - 1
compiler/options.pas

@@ -4985,7 +4985,7 @@ begin
       case target_info.system of
 {$ifdef AVR}
         system_avr_embedded:
-          if init_settings.controllertype=ct_avrsim then
+          if init_settings.controllertype in [ct_avrsim,ct_avrsim6] then
             heapsize:=8192
           else
             heapsize:=128;