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 11 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,8 +1424,8 @@ void process_commands()
1424 1424
       }
1425 1425
     }
1426 1426
     break;
1427
-
1428
-    #if defined(BEEPER) && BEEPER > -1
1427
+    
1428
+    #if defined(LARGE_FLASH) && LARGE_FLASH == true && defined(BEEPER) && BEEPER > -1
1429 1429
     case 300: // M300
1430 1430
     {
1431 1431
       int beepS = 1;

+ 11
- 1
Marlin/pins.h View File

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

Loading…
Cancel
Save