Browse Source

Add LARGE_FLASH define and enable it for some of the beefier boards

The LARGE_FLASH flag allows superfluous features to be excluded
on boards with less memory
Colin Edwards 12 years ago
parent
commit
0d075378d5
2 changed files with 13 additions and 3 deletions
  1. 2
    2
      Marlin/Marlin_main.cpp
  2. 11
    1
      Marlin/pins.h

+ 2
- 2
Marlin/Marlin_main.cpp View File

1424
       }
1424
       }
1425
     }
1425
     }
1426
     break;
1426
     break;
1427
-
1428
-    #if defined(BEEPER) && BEEPER > -1
1427
+    
1428
+    #if defined(LARGE_FLASH) && LARGE_FLASH == true && defined(BEEPER) && BEEPER > -1
1429
     case 300: // M300
1429
     case 300: // M300
1430
     {
1430
     {
1431
       int beepS = 1;
1431
       int beepS = 1;

+ 11
- 1
Marlin/pins.h View File

321
 
321
 
322
 #if MOTHERBOARD == 33 || MOTHERBOARD == 34
322
 #if MOTHERBOARD == 33 || MOTHERBOARD == 34
323
 
323
 
324
+#define LARGE_FLASH        true
325
+
324
 #define X_STEP_PIN         54
326
 #define X_STEP_PIN         54
325
 #define X_DIR_PIN          55
327
 #define X_DIR_PIN          55
326
 #define X_ENABLE_PIN       38
328
 #define X_ENABLE_PIN       38
789
  #endif
791
  #endif
790
 #endif
792
 #endif
791
 
793
 
794
+#define LARGE_FLASH true
795
+
792
 #define X_STEP_PIN 25
796
 #define X_STEP_PIN 25
793
 #define X_DIR_PIN 23
797
 #define X_DIR_PIN 23
794
 #define X_MIN_PIN 22
798
 #define X_MIN_PIN 22
924
  #endif
928
  #endif
925
 #endif
929
 #endif
926
 
930
 
931
+#define LARGE_FLASH true
932
+
927
 #define X_STEP_PIN 25
933
 #define X_STEP_PIN 25
928
 #define X_DIR_PIN 23
934
 #define X_DIR_PIN 23
929
 #define X_MIN_PIN 15
935
 #define X_MIN_PIN 15
993
 #error Oops!  Make sure you have 'Teensy++ 2.0' selected from the 'Tools -> Boards' menu.
999
 #error Oops!  Make sure you have 'Teensy++ 2.0' selected from the 'Tools -> Boards' menu.
994
 #endif
1000
 #endif
995
 
1001
 
1002
+#define LARGE_FLASH        true
1003
+
996
 #define X_STEP_PIN          0
1004
 #define X_STEP_PIN          0
997
 #define X_DIR_PIN           1
1005
 #define X_DIR_PIN           1
998
 #define X_ENABLE_PIN       39
1006
 #define X_ENABLE_PIN       39
1326
 #error Oops!  Make sure you have 'Arduino Mega 2560' selected from the 'Tools -> Boards' menu.
1334
 #error Oops!  Make sure you have 'Arduino Mega 2560' selected from the 'Tools -> Boards' menu.
1327
 #endif
1335
 #endif
1328
 
1336
 
1337
+#define LARGE_FLASH true
1338
+
1329
 #define X_STEP_PIN 37
1339
 #define X_STEP_PIN 37
1330
 #define X_DIR_PIN 48
1340
 #define X_DIR_PIN 48
1331
 #define X_MIN_PIN 12
1341
 #define X_MIN_PIN 12
1401
  #endif
1411
  #endif
1402
 
1412
 
1403
 
1413
 
1404
-
1414
+#define LARGE_FLASH        true
1405
 
1415
 
1406
 #define X_STEP_PIN         26
1416
 #define X_STEP_PIN         26
1407
 #define X_DIR_PIN          28
1417
 #define X_DIR_PIN          28

Loading…
Cancel
Save