2017-07-18 23:29:06 +00:00
|
|
|
/**
|
|
|
|
* Marlin 3D Printer Firmware
|
2019-06-28 04:57:50 +00:00
|
|
|
* Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
2017-07-18 23:29:06 +00:00
|
|
|
*
|
|
|
|
* Based on Sprinter and grbl.
|
2019-06-28 04:57:50 +00:00
|
|
|
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
2017-07-18 23:29:06 +00:00
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
*/
|
2019-07-05 03:44:12 +00:00
|
|
|
#pragma once
|
2017-07-18 23:29:06 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Alligator Board R2
|
|
|
|
* http://www.3dartists.org/
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __SAM3X8E__
|
2018-11-09 03:57:15 +00:00
|
|
|
#error "Oops! Select 'Arduino Due' in 'Tools > Board.'"
|
2017-07-18 23:29:06 +00:00
|
|
|
#endif
|
|
|
|
|
2019-01-20 01:21:43 +00:00
|
|
|
#define BOARD_NAME "Alligator Board R2"
|
2017-07-18 23:29:06 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// Servos
|
|
|
|
//
|
2019-01-20 01:21:43 +00:00
|
|
|
#define SERVO0_PIN 36
|
|
|
|
#define SERVO1_PIN 40
|
|
|
|
#define SERVO2_PIN 41
|
|
|
|
#define SERVO3_PIN -1
|
2017-07-18 23:29:06 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// Limit Switches
|
|
|
|
//
|
2019-01-20 01:21:43 +00:00
|
|
|
#define X_MIN_PIN 33 // PC1
|
|
|
|
#define X_MAX_PIN 34 // PC2
|
|
|
|
#define Y_MIN_PIN 35 // PC3
|
|
|
|
#define Y_MAX_PIN 37 // PC5
|
|
|
|
#define Z_MIN_PIN 38 // PC6
|
|
|
|
#define Z_MAX_PIN 39 // PC7
|
2017-07-18 23:29:06 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// Steppers
|
|
|
|
//
|
2019-01-20 01:21:43 +00:00
|
|
|
#define X_STEP_PIN 96 // PB24
|
|
|
|
#define X_DIR_PIN 2 // PB25
|
|
|
|
#define X_ENABLE_PIN 24 // PA15, motor RESET pin
|
2017-07-18 23:29:06 +00:00
|
|
|
|
2019-01-20 01:21:43 +00:00
|
|
|
#define Y_STEP_PIN 94 // PB22
|
|
|
|
#define Y_DIR_PIN 95 // PB23
|
|
|
|
#define Y_ENABLE_PIN 24 // PA15, motor RESET pin
|
2017-07-18 23:29:06 +00:00
|
|
|
|
2019-01-20 01:21:43 +00:00
|
|
|
#define Z_STEP_PIN 98 // PC27
|
|
|
|
#define Z_DIR_PIN 3 // PC28
|
|
|
|
#define Z_ENABLE_PIN 24 // PA15, motor RESET pin
|
2017-07-18 23:29:06 +00:00
|
|
|
|
2019-01-20 01:21:43 +00:00
|
|
|
#define E0_STEP_PIN 5 // PC25
|
|
|
|
#define E0_DIR_PIN 4 // PC26
|
|
|
|
#define E0_ENABLE_PIN 24 // PA15, motor RESET pin
|
2017-07-18 23:29:06 +00:00
|
|
|
|
2019-01-20 01:21:43 +00:00
|
|
|
#define E1_STEP_PIN 28 // PD3 on piggy
|
|
|
|
#define E1_DIR_PIN 27 // PD2 on piggy
|
|
|
|
#define E1_ENABLE_PIN 24 // PA15, motor RESET pin
|
2017-07-18 23:29:06 +00:00
|
|
|
|
2019-01-20 01:21:43 +00:00
|
|
|
#define E2_STEP_PIN 11 // PD7 on piggy
|
|
|
|
#define E2_DIR_PIN 29 // PD6 on piggy
|
|
|
|
#define E2_ENABLE_PIN 24 // PA15, motor RESET pin
|
2017-07-18 23:29:06 +00:00
|
|
|
|
2019-01-20 01:21:43 +00:00
|
|
|
#define E3_STEP_PIN 30 // PD9 on piggy
|
|
|
|
#define E3_DIR_PIN 12 // PD8 on piggy
|
|
|
|
#define E3_ENABLE_PIN 24 // PA15, motor RESET pin
|
2017-07-18 23:29:06 +00:00
|
|
|
|
|
|
|
// Microstepping pins - Mapping not from fastio.h (?)
|
2019-01-20 01:21:43 +00:00
|
|
|
#define X_MS1_PIN 99 // PC10
|
|
|
|
#define Y_MS1_PIN 10 // PC29
|
|
|
|
#define Z_MS1_PIN 44 // PC19
|
|
|
|
#define E0_MS1_PIN 45 // PC18
|
2017-07-18 23:29:06 +00:00
|
|
|
|
2019-01-20 01:21:43 +00:00
|
|
|
//#define MOTOR_FAULT_PIN 22 // PB26 , motor X-Y-Z-E0 motor FAULT
|
2017-07-18 23:29:06 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// Temperature Sensors
|
|
|
|
//
|
2019-01-20 01:21:43 +00:00
|
|
|
#define TEMP_0_PIN 1 // Analog Input (PA24)
|
|
|
|
#define TEMP_1_PIN 2 // Analog Input (PA23 on piggy)
|
|
|
|
#define TEMP_2_PIN 3 // Analog Input (PA22 on piggy)
|
|
|
|
#define TEMP_3_PIN 4 // Analog Input (PA6 on piggy)
|
|
|
|
#define TEMP_BED_PIN 0 // Analog Input (PA16)
|
2017-07-18 23:29:06 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// Heaters / Fans
|
|
|
|
//
|
|
|
|
// Note that on the Due pin A0 on the board is channel 2 on the ARM chip
|
2019-01-20 01:21:43 +00:00
|
|
|
#define HEATER_0_PIN 68 // PA1
|
|
|
|
#define HEATER_1_PIN 8 // PC22 on piggy
|
|
|
|
#define HEATER_2_PIN 9 // PC21 on piggy
|
|
|
|
#define HEATER_3_PIN 97 // PC20 on piggy
|
|
|
|
#define HEATER_BED_PIN 69 // PA0
|
2017-07-18 23:29:06 +00:00
|
|
|
|
2018-06-07 21:46:13 +00:00
|
|
|
#ifndef FAN_PIN
|
2019-01-20 01:21:43 +00:00
|
|
|
#define FAN_PIN 92 // PA5
|
2018-06-07 21:46:13 +00:00
|
|
|
#endif
|
2019-01-20 01:21:43 +00:00
|
|
|
#define FAN1_PIN 31 // PA7
|
2017-07-18 23:29:06 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// Misc. Functions
|
|
|
|
//
|
2019-01-20 01:21:43 +00:00
|
|
|
#define SDSS 77 // PA28
|
|
|
|
#define SD_DETECT_PIN 87 // PA29
|
|
|
|
#define LED_RED_PIN 40 // PC8
|
|
|
|
#define LED_GREEN_PIN 41 // PC9
|
2017-07-18 23:29:06 +00:00
|
|
|
|
|
|
|
#define EXP_VOLTAGE_LEVEL_PIN 65
|
|
|
|
|
2019-01-20 01:21:43 +00:00
|
|
|
#define SPI_CHAN_DAC 1
|
2017-07-18 23:29:06 +00:00
|
|
|
|
2019-01-20 01:21:43 +00:00
|
|
|
#define DAC0_SYNC 53 // PB14
|
|
|
|
#define DAC1_SYNC 6 // PC24
|
2017-07-18 23:29:06 +00:00
|
|
|
|
|
|
|
// 64K SPI EEPROM
|
|
|
|
#define SPI_EEPROM
|
2019-01-20 01:21:43 +00:00
|
|
|
#define SPI_CHAN_EEPROM1 2
|
|
|
|
#define SPI_EEPROM1_CS 25 // PD0
|
2017-07-18 23:29:06 +00:00
|
|
|
|
|
|
|
// 2K SPI EEPROM
|
2019-01-20 01:21:43 +00:00
|
|
|
#define SPI_EEPROM2_CS 26 // PD1
|
2017-07-18 23:29:06 +00:00
|
|
|
|
|
|
|
// FLASH SPI
|
|
|
|
// 32Mb
|
2019-01-20 01:21:43 +00:00
|
|
|
#define SPI_FLASH_CS 23 // PA14
|
2017-07-18 23:29:06 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// LCD / Controller
|
|
|
|
//
|
|
|
|
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
|
|
|
|
2019-01-20 01:21:43 +00:00
|
|
|
#define LCD_PINS_RS 18
|
|
|
|
#define LCD_PINS_ENABLE 15
|
|
|
|
#define LCD_PINS_D4 19
|
|
|
|
#define BEEPER_PIN 64
|
2017-07-18 23:29:06 +00:00
|
|
|
|
2019-01-20 01:21:43 +00:00
|
|
|
#define BTN_EN1 14
|
|
|
|
#define BTN_EN2 16
|
|
|
|
#define BTN_ENC 17
|
2017-07-18 23:29:06 +00:00
|
|
|
|
2019-01-20 01:21:43 +00:00
|
|
|
#undef UI_VOLTAGE_LEVEL
|
|
|
|
#define UI_VOLTAGE_LEVEL 1
|
2017-07-18 23:29:06 +00:00
|
|
|
|
|
|
|
#endif // REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
|