Adjust motate_pin_assignments.h (all of them) for IDE compatibility

This commit is contained in:
Rob Giseburt
2019-10-24 11:45:14 -05:00
parent 311fa83eb6
commit 08b8a98afb
6 changed files with 19 additions and 49 deletions
@@ -180,17 +180,13 @@ _MAKE_MOTATE_PIN(78, 'B', 23); // SS1
#include "motate_chip_pin_functions.h"
// We're putting this in to make the autocomplete work for XCode,
// since it doesn't understand the special syntax coming up.
#ifdef XCODE_INDEX
#include <Due-pinout.h>
#endif
#ifdef MOTATE_BOARD
#define MOTATE_BOARD_PINOUT < MOTATE_BOARD-pinout.h >
#define MOTATE_BOARD_PINOUT <MOTATE_BOARD-pinout.h>
#include MOTATE_BOARD_PINOUT
#else
#error Unknown board layout
// This next include is for IDEs only
#include <Due-pinout.h>
#endif
#endif
+4 -8
View File
@@ -175,7 +175,7 @@ pin_number kGRBL_CommonEnablePinNumber = -1;
pin_number kHeaterOutput1_PinNumber = -1; // DO_1: Extruder1_PWM
pin_number kHeaterOutput2_PinNumber = -1; // DO_2: Extruder2_PWM
pin_number kOutput1_PinNumber = 130; // DO_1:
pin_number kOutput2_PinNumber = 131; // DO_2:
pin_number kOutput2_PinNumber = 131; // DO_2:
pin_number kOutput3_PinNumber = 132; // DO_3: Fan1A_PWM
pin_number kOutput4_PinNumber = 133; // DO_4: Fan1B_PWM
pin_number kOutput5_PinNumber = 134; // DO_5: Fan2A_PWM
@@ -234,17 +234,13 @@ pin_number kUnassigned1 = 254; // 254 is the max.. Do not exceed this number
// For the SAM3X8C boards, we actually use the same NUMBERING, but have different number to pin linkages
// We're putting this in to make the autocomplete work for XCode,
// since it doesn't understand the special syntax coming up.
#ifdef XCODE_INDEX
#include <G2v9k-pinout.h>
#endif
#ifdef MOTATE_BOARD
#define MOTATE_BOARD_PINOUT < MOTATE_BOARD-pinout.h >
#define MOTATE_BOARD_PINOUT <MOTATE_BOARD-pinout.h>
#include MOTATE_BOARD_PINOUT
#else
#error Unknown board layout $(MOTATE_BOARD)
// This next include is for IDEs only
#include <G2v9k-pinout.h>
#endif
#endif
@@ -275,19 +275,13 @@ pin_number kUnassigned1 = 254; // 254 is the max.. Do not exceed this number
} // namespace Motate
// For the SAM3X8C boards, we actually use the same NUMBERING, but have different number to pin linkages
// We're putting this in to make the autocomplete work for XCode,
// since it doesn't understand the special syntax coming up.
#ifdef XCODE_INDEX
#include <gquadratic-a-pinout.h>
#endif
#ifdef MOTATE_BOARD
#define MOTATE_BOARD_PINOUT < MOTATE_BOARD-pinout.h >
#define MOTATE_BOARD_PINOUT <MOTATE_BOARD-pinout.h>
#include MOTATE_BOARD_PINOUT
#else
#error Unknown board layout $(MOTATE_BOARD)
// This next include is for IDEs only
#include <gquadratic-c-pinout.h>
#endif
#endif
@@ -251,19 +251,13 @@ pin_number kUnassigned2 = 253;
pin_number kUnassigned1 = 254; // 254 is the max.. Do not exceed this number
} // namespace Motate
// For the SAM3X8C boards, we actually use the same NUMBERING, but have different number to pin linkages
// We're putting this in to make the autocomplete work for XCode,
// since it doesn't understand the special syntax coming up.
#ifdef XCODE_INDEX
#include <gquintic-a-pinout.h>
#endif
#ifdef MOTATE_BOARD
#define MOTATE_BOARD_PINOUT <MOTATE_BOARD-pinout.h>
#include MOTATE_BOARD_PINOUT
#else
#error Unknown board layout $(MOTATE_BOARD)
// This next include is for IDEs only
#include <gquintic-d-pinout.h>
#endif
#endif
@@ -194,7 +194,7 @@ pin_number kOutput9_PinNumber = 138; // SAFE signal
pin_number kOutput10_PinNumber = 139; // DO_10: Fan2B_PWM
pin_number kHeaterOutput11_PinNumber = 140; // DO_11: Heated Bed FET
pin_number kOutput11_PinNumber = -1; // DO_11:
pin_number kOutput11_PinNumber = -1; // DO_11:
pin_number kOutput12_PinNumber = 141; // DO_12: Indicator_LED
pin_number kOutput13_PinNumber = -1; // 142;
pin_number kOutput14_PinNumber = -1; // 143;
@@ -250,19 +250,13 @@ pin_number kUnassigned1 = 254; // 254 is the max.. Do not exceed this number
} // namespace Motate
// For the SAM3X8C boards, we actually use the same NUMBERING, but have different number to pin linkages
// We're putting this in to make the autocomplete work for XCode,
// since it doesn't understand the special syntax coming up.
#ifdef XCODE_INDEX
#include <pboard-a-pinout.h>
#endif
#ifdef MOTATE_BOARD
#define MOTATE_BOARD_PINOUT < MOTATE_BOARD-pinout.h >
#define MOTATE_BOARD_PINOUT <MOTATE_BOARD-pinout.h>
#include MOTATE_BOARD_PINOUT
#else
#error Unknown board layout $(MOTATE_BOARD)
// This next include is for IDEs only
#include <printrboardG2v3-pinout.h>
#endif
#endif
+3 -7
View File
@@ -310,17 +310,13 @@ pin_number kUnassigned1 = 254; // 254 is the max.. Do not exceed this number
} // namespace Motate
// We're putting this in to make the autocomplete work for XCode,
// since it doesn't understand the special syntax coming up.
#ifdef XCODE_INDEX
#include <sbv300-pinout.h>
#endif
#ifdef MOTATE_BOARD
#define MOTATE_BOARD_PINOUT < MOTATE_BOARD-pinout.h >
#define MOTATE_BOARD_PINOUT <MOTATE_BOARD-pinout.h>
#include MOTATE_BOARD_PINOUT
#else
#error Unknown board layout
// This next include is for IDEs only
#include <sbv300-pinout.h>
#endif
#endif