2016-03-25 01:19:46 -05:00
|
|
|
/**
|
2016-03-24 13:01:20 -05:00
|
|
|
* Marlin 3D Printer Firmware
|
|
|
|
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
|
|
|
*
|
|
|
|
* Based on Sprinter and grbl.
|
|
|
|
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
|
|
|
|
*
|
|
|
|
* 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/>.
|
|
|
|
*
|
|
|
|
*/
|
2018-11-04 02:25:55 -06:00
|
|
|
#pragma once
|
2014-12-18 14:02:36 -06:00
|
|
|
|
|
|
|
#define BOARD_UNKNOWN -1
|
|
|
|
|
2017-10-31 16:10:38 -05:00
|
|
|
//
|
|
|
|
// RAMPS 1.3 / 1.4 - ATmega1280, ATmega2560
|
|
|
|
//
|
|
|
|
|
|
|
|
#define BOARD_RAMPS_OLD 3 // MEGA/RAMPS up to 1.2
|
2017-12-05 00:33:25 -06:00
|
|
|
|
2017-10-31 16:10:38 -05:00
|
|
|
#define BOARD_RAMPS_13_EFB 33 // RAMPS 1.3 (Power outputs: Hotend, Fan, Bed)
|
|
|
|
#define BOARD_RAMPS_13_EEB 34 // RAMPS 1.3 (Power outputs: Hotend0, Hotend1, Bed)
|
|
|
|
#define BOARD_RAMPS_13_EFF 35 // RAMPS 1.3 (Power outputs: Hotend, Fan0, Fan1)
|
|
|
|
#define BOARD_RAMPS_13_EEF 36 // RAMPS 1.3 (Power outputs: Hotend0, Hotend1, Fan)
|
|
|
|
#define BOARD_RAMPS_13_SF 38 // RAMPS 1.3 (Power outputs: Spindle, Controller Fan)
|
2017-12-05 00:33:25 -06:00
|
|
|
|
2017-10-31 16:10:38 -05:00
|
|
|
#define BOARD_RAMPS_14_EFB 43 // RAMPS 1.4 (Power outputs: Hotend, Fan, Bed)
|
|
|
|
#define BOARD_RAMPS_14_EEB 44 // RAMPS 1.4 (Power outputs: Hotend0, Hotend1, Bed)
|
|
|
|
#define BOARD_RAMPS_14_EFF 45 // RAMPS 1.4 (Power outputs: Hotend, Fan0, Fan1)
|
|
|
|
#define BOARD_RAMPS_14_EEF 46 // RAMPS 1.4 (Power outputs: Hotend0, Hotend1, Fan)
|
|
|
|
#define BOARD_RAMPS_14_SF 48 // RAMPS 1.4 (Power outputs: Spindle, Controller Fan)
|
|
|
|
|
2017-12-05 00:33:25 -06:00
|
|
|
#define BOARD_RAMPS_PLUS_EFB 143 // RAMPS Plus 3DYMY (Power outputs: Hotend, Fan, Bed)
|
|
|
|
#define BOARD_RAMPS_PLUS_EEB 144 // RAMPS Plus 3DYMY (Power outputs: Hotend0, Hotend1, Bed)
|
|
|
|
#define BOARD_RAMPS_PLUS_EFF 145 // RAMPS Plus 3DYMY (Power outputs: Hotend, Fan0, Fan1)
|
|
|
|
#define BOARD_RAMPS_PLUS_EEF 146 // RAMPS Plus 3DYMY (Power outputs: Hotend0, Hotend1, Fan)
|
|
|
|
#define BOARD_RAMPS_PLUS_SF 148 // RAMPS Plus 3DYMY (Power outputs: Spindle, Controller Fan)
|
|
|
|
|
2017-10-31 16:10:38 -05:00
|
|
|
//
|
|
|
|
// RAMPS Derivatives - ATmega1280, ATmega2560
|
|
|
|
//
|
|
|
|
|
|
|
|
#define BOARD_3DRAG 77 // 3Drag Controller
|
|
|
|
#define BOARD_K8200 78 // Velleman K8200 Controller (derived from 3Drag Controller)
|
|
|
|
#define BOARD_K8400 79 // Velleman K8400 Controller (derived from 3Drag Controller)
|
|
|
|
#define BOARD_BAM_DICE 401 // 2PrintBeta BAM&DICE with STK drivers
|
|
|
|
#define BOARD_BAM_DICE_DUE 402 // 2PrintBeta BAM&DICE Due with STK drivers
|
2018-04-18 22:58:43 -05:00
|
|
|
#define BOARD_MKS_BASE 40 // MKS BASE v1.0
|
2018-12-30 10:40:22 -06:00
|
|
|
#define BOARD_MKS_BASE_14 404 // MKS v1.4 A4982 stepper drivers
|
2018-04-18 22:58:43 -05:00
|
|
|
#define BOARD_MKS_BASE_15 405 // MKS v1.5 with Allegro A4982 stepper drivers
|
2018-03-03 23:14:52 -06:00
|
|
|
#define BOARD_MKS_BASE_HEROIC 41 // MKS BASE 1.0 with Heroic HR4982 stepper drivers
|
2018-04-20 16:09:52 -05:00
|
|
|
#define BOARD_MKS_GEN_13 47 // MKS GEN v1.3 or 1.4
|
2017-11-02 17:06:08 -05:00
|
|
|
#define BOARD_MKS_GEN_L 53 // MKS GEN L
|
2018-08-03 18:14:26 -05:00
|
|
|
#define BOARD_KFB_2 136 // Bigtreetech or BIQU KFB2.0
|
2017-10-31 16:10:38 -05:00
|
|
|
#define BOARD_ZRIB_V20 504 // zrib V2.0 control board (Chinese knock off RAMPS replica)
|
|
|
|
#define BOARD_FELIX2 37 // Felix 2.0+ Electronics Board (RAMPS like)
|
|
|
|
#define BOARD_RIGIDBOARD 42 // Invent-A-Part RigidBoard
|
|
|
|
#define BOARD_RIGIDBOARD_V2 52 // Invent-A-Part RigidBoard V2
|
|
|
|
#define BOARD_SAINSMART_2IN1 49 // Sainsmart 2-in-1 board
|
|
|
|
#define BOARD_ULTIMAKER 7 // Ultimaker
|
|
|
|
#define BOARD_ULTIMAKER_OLD 71 // Ultimaker (Older electronics. Pre 1.5.4. This is rare)
|
|
|
|
#define BOARD_AZTEEG_X3 67 // Azteeg X3
|
|
|
|
#define BOARD_AZTEEG_X3_PRO 68 // Azteeg X3 Pro
|
|
|
|
#define BOARD_ULTIMAIN_2 72 // Ultimainboard 2.x (Uses TEMP_SENSOR 20)
|
|
|
|
#define BOARD_RUMBA 80 // Rumba
|
2018-11-25 19:56:06 -06:00
|
|
|
#define BOARD_RUMBA_RAISE3D 333 // Raise3D N series Rumba derivative
|
2019-01-19 20:19:14 -06:00
|
|
|
#define BOARD_RL200 801 // Rapide Lite 200 (v1, low-cost RUMBA clone with drv)
|
2018-11-25 19:07:36 -06:00
|
|
|
#define BOARD_FORMBOT_TREX2PLUS 95 // Formbot T-Rex 2 Plus
|
|
|
|
#define BOARD_FORMBOT_TREX3 96 // Formbot T-Rex 3
|
|
|
|
#define BOARD_FORMBOT_RAPTOR 97 // Formbot Raptor
|
2018-11-25 19:56:06 -06:00
|
|
|
#define BOARD_FORMBOT_RAPTOR2 98 // Formbot Raptor 2
|
2017-10-31 16:10:38 -05:00
|
|
|
#define BOARD_BQ_ZUM_MEGA_3D 503 // bq ZUM Mega 3D
|
|
|
|
#define BOARD_MAKEBOARD_MINI 431 // MakeBoard Mini v2.1.2 is a control board sold by MicroMake
|
2018-04-02 22:01:02 -05:00
|
|
|
#define BOARD_TRIGORILLA_13 343 // TriGorilla Anycubic version 1.3 based on RAMPS EFB
|
2018-04-02 22:11:38 -05:00
|
|
|
#define BOARD_TRIGORILLA_14 443 // TriGorilla Anycubic version 1.4 based on RAMPS EFB
|
2018-04-01 18:18:36 -05:00
|
|
|
#define BOARD_RAMPS_ENDER_4 243 // Creality: Ender-4, CR-8
|
2018-10-26 16:09:04 -05:00
|
|
|
#define BOARD_RAMPS_CREALITY 244 // Creality: CR10S, CR20, CR-X
|
2018-09-27 18:20:19 -05:00
|
|
|
#define BOARD_FYSETC_F6_13 541 // Fysetc F6
|
2018-12-20 17:30:36 -06:00
|
|
|
#define BOARD_DUPLICATOR_I3_PLUS 31 // Wanhao Duplicator i3 Plus
|
2019-01-03 06:27:03 -06:00
|
|
|
#define BOARD_VORON 441 // VORON Design
|
2017-10-31 16:10:38 -05:00
|
|
|
|
|
|
|
//
|
|
|
|
// Other ATmega1280, ATmega2560
|
|
|
|
//
|
|
|
|
|
|
|
|
#define BOARD_CNCONTROLS_11 111 // Cartesio CN Controls V11
|
|
|
|
#define BOARD_CNCONTROLS_12 112 // Cartesio CN Controls V12
|
|
|
|
#define BOARD_CHEAPTRONIC 2 // Cheaptronic v1.0
|
|
|
|
#define BOARD_CHEAPTRONIC_V2 21 // Cheaptronic v2.0
|
|
|
|
#define BOARD_MIGHTYBOARD_REVE 200 // Makerbot Mightyboard Revision E
|
|
|
|
#define BOARD_MEGATRONICS 70 // Megatronics
|
|
|
|
#define BOARD_MEGATRONICS_2 701 // Megatronics v2.0
|
|
|
|
#define BOARD_MEGATRONICS_3 703 // Megatronics v3.0
|
|
|
|
#define BOARD_MEGATRONICS_31 704 // Megatronics v3.1
|
2018-12-20 17:30:36 -06:00
|
|
|
#define BOARD_MEGATRONICS_32 705 // Megatronics v3.2
|
2017-10-31 16:10:38 -05:00
|
|
|
#define BOARD_RAMBO 301 // Rambo
|
|
|
|
#define BOARD_MINIRAMBO 302 // Mini-Rambo
|
2017-12-08 23:35:01 -06:00
|
|
|
#define BOARD_MINIRAMBO_10A 303 // Mini-Rambo 1.0a
|
2018-02-28 04:16:12 -06:00
|
|
|
#define BOARD_EINSY_RAMBO 304 // Einsy Rambo
|
2018-04-05 08:58:57 -05:00
|
|
|
#define BOARD_EINSY_RETRO 305 // Einsy Retro
|
2017-10-31 16:10:38 -05:00
|
|
|
#define BOARD_ELEFU_3 21 // Elefu Ra Board (v3)
|
|
|
|
#define BOARD_LEAPFROG 999 // Leapfrog
|
|
|
|
#define BOARD_MEGACONTROLLER 310 // Mega controller
|
2017-12-08 23:35:01 -06:00
|
|
|
#define BOARD_SCOOVO_X9H 321 // abee Scoovo X9H
|
2017-10-31 16:10:38 -05:00
|
|
|
#define BOARD_GT2560_REV_A 74 // Geeetech GT2560 Rev. A
|
|
|
|
#define BOARD_GT2560_REV_A_PLUS 75 // Geeetech GT2560 Rev. A+ (with auto level probe)
|
2018-10-06 12:26:49 -05:00
|
|
|
#define BOARD_GT2560_V3 76 // Geeetech GT2560 Rev B for A10(M/D)
|
2018-10-10 16:23:21 -05:00
|
|
|
#define BOARD_GT2560_V3_MC2 73 // Geeetech GT2560 Rev B for Mecreator2
|
2019-01-26 16:16:21 -06:00
|
|
|
#define BOARD_GT2560_V3_A20 86 // Geeetech GT2560 Rev B for A20(M/D)
|
2018-07-26 05:52:22 -05:00
|
|
|
#define BOARD_EINSTART_S 666 // Einstart retrofit
|
2017-10-31 16:10:38 -05:00
|
|
|
|
|
|
|
//
|
|
|
|
// ATmega1281, ATmega2561
|
|
|
|
//
|
|
|
|
|
|
|
|
#define BOARD_MINITRONICS 702 // Minitronics v1.0/1.1
|
|
|
|
#define BOARD_SILVER_GATE 25 // Silvergate v1.0
|
|
|
|
|
|
|
|
//
|
|
|
|
// Sanguinololu and Derivatives - ATmega644P, ATmega1284P
|
|
|
|
//
|
2017-10-14 09:44:18 -05:00
|
|
|
|
2017-10-31 16:10:38 -05:00
|
|
|
#define BOARD_SANGUINOLOLU_11 6 // Sanguinololu < 1.2
|
|
|
|
#define BOARD_SANGUINOLOLU_12 62 // Sanguinololu 1.2 and above
|
|
|
|
#define BOARD_MELZI 63 // Melzi
|
|
|
|
#define BOARD_MELZI_MAKR3D 66 // Melzi with ATmega1284 (MaKr3d version)
|
|
|
|
#define BOARD_MELZI_CREALITY 89 // Melzi Creality3D board (for CR-10 etc)
|
2018-01-12 01:07:25 -06:00
|
|
|
#define BOARD_MELZI_MALYAN 92 // Melzi Malyan M150 board
|
2018-02-10 14:47:23 -06:00
|
|
|
#define BOARD_MELZI_TRONXY 505 // Tronxy X5S
|
2017-10-31 16:10:38 -05:00
|
|
|
#define BOARD_STB_11 64 // STB V1.1
|
|
|
|
#define BOARD_AZTEEG_X1 65 // Azteeg X1
|
2018-04-20 16:09:52 -05:00
|
|
|
#define BOARD_ANET_10 69 // Anet 1.0 (Melzi clone)
|
2017-10-31 16:10:38 -05:00
|
|
|
|
|
|
|
//
|
|
|
|
// Other ATmega644P, ATmega644, ATmega1284P
|
|
|
|
//
|
|
|
|
|
|
|
|
#define BOARD_GEN3_MONOLITHIC 22 // Gen3 Monolithic Electronics
|
|
|
|
#define BOARD_GEN3_PLUS 9 // Gen3+
|
|
|
|
#define BOARD_GEN6 5 // Gen6
|
|
|
|
#define BOARD_GEN6_DELUXE 51 // Gen6 deluxe
|
|
|
|
#define BOARD_GEN7_CUSTOM 10 // Gen7 custom (Alfons3 Version) "https://github.com/Alfons3/Generation_7_Electronics"
|
|
|
|
#define BOARD_GEN7_12 11 // Gen7 v1.1, v1.2
|
|
|
|
#define BOARD_GEN7_13 12 // Gen7 v1.3
|
|
|
|
#define BOARD_GEN7_14 13 // Gen7 v1.4
|
|
|
|
#define BOARD_OMCA_A 90 // Alpha OMCA board
|
|
|
|
#define BOARD_OMCA 91 // Final OMCA board
|
|
|
|
#define BOARD_SETHI 20 // Sethi 3D_1
|
|
|
|
|
|
|
|
//
|
|
|
|
// Teensyduino - AT90USB1286, AT90USB1286P
|
|
|
|
//
|
|
|
|
|
|
|
|
#define BOARD_TEENSYLU 8 // Teensylu
|
|
|
|
#define BOARD_PRINTRBOARD 81 // Printrboard (AT90USB1286)
|
|
|
|
#define BOARD_PRINTRBOARD_REVF 811 // Printrboard Revision F (AT90USB1286)
|
|
|
|
#define BOARD_BRAINWAVE 82 // Brainwave (AT90USB646)
|
|
|
|
#define BOARD_BRAINWAVE_PRO 85 // Brainwave Pro (AT90USB1286)
|
|
|
|
#define BOARD_SAV_MKI 83 // SAV Mk-I (AT90USB1286)
|
2018-04-20 16:09:52 -05:00
|
|
|
#define BOARD_TEENSY2 84 // Teensy++2.0 (AT90USB1286)
|
2017-10-31 16:10:38 -05:00
|
|
|
#define BOARD_5DPRINT 88 // 5DPrint D8 Driver Board
|
|
|
|
|
|
|
|
//
|
|
|
|
// LPC1768 ARM Cortex M3
|
|
|
|
//
|
|
|
|
|
|
|
|
#define BOARD_RAMPS_14_RE_ARM_EFB 1743 // Re-ARM with RAMPS 1.4 (Power outputs: Hotend, Fan, Bed)
|
|
|
|
#define BOARD_RAMPS_14_RE_ARM_EEB 1744 // Re-ARM with RAMPS 1.4 (Power outputs: Hotend0, Hotend1, Bed)
|
|
|
|
#define BOARD_RAMPS_14_RE_ARM_EFF 1745 // Re-ARM with RAMPS 1.4 (Power outputs: Hotend, Fan0, Fan1)
|
|
|
|
#define BOARD_RAMPS_14_RE_ARM_EEF 1746 // Re-ARM with RAMPS 1.4 (Power outputs: Hotend0, Hotend1, Fan)
|
|
|
|
#define BOARD_RAMPS_14_RE_ARM_SF 1748 // Re-ARM with RAMPS 1.4 (Power outputs: Spindle, Controller Fan)
|
|
|
|
#define BOARD_MKS_SBASE 1750 // MKS-Sbase (Power outputs: Hotend0, Hotend1, Bed, Fan)
|
|
|
|
#define BOARD_AZSMZ_MINI 1751 // AZSMZ Mini
|
|
|
|
#define BOARD_AZTEEG_X5_GT 1752 // Azteeg X5 GT (Power outputs: Hotend0, Hotend1, Bed, Fan)
|
2017-11-07 21:14:46 -06:00
|
|
|
#define BOARD_BIQU_BQ111_A4 1753 // BIQU BQ111-A4 (Power outputs: Hotend, Fan, Bed)
|
2018-02-04 03:15:09 -06:00
|
|
|
#define BOARD_SELENA_COMPACT 1754 // Selena Compact (Power outputs: Hotend0, Hotend1, Bed0, Bed1, Fan0, Fan1)
|
2018-02-08 03:14:39 -06:00
|
|
|
#define BOARD_COHESION3D_REMIX 1755 // Cohesion3D ReMix
|
|
|
|
#define BOARD_COHESION3D_MINI 1756 // Cohesion3D Mini
|
2018-08-07 19:01:56 -05:00
|
|
|
#define BOARD_SMOOTHIEBOARD 1757 // Smoothieboard
|
2018-08-21 23:58:26 -05:00
|
|
|
#define BOARD_AZTEEG_X5_MINI_WIFI 1758 // Azteeg X5 Mini (Power outputs: Hotend0, Bed, Fan)
|
2018-12-27 10:52:35 -06:00
|
|
|
#define BOARD_BIQU_SKR_V1_1 1759 // BIQU SKR_V1.1 (Power outputs: Hotend0,Hotend1, Fan, Bed)
|
|
|
|
#define BOARD_BIQU_B300_V1_0 1760 // BIQU B300_V1.0 (Power outputs: Hotend0, Fan, Bed, SPI Driver)
|
2017-10-31 16:10:38 -05:00
|
|
|
|
|
|
|
//
|
|
|
|
// SAM3X8E ARM Cortex M3
|
|
|
|
//
|
2018-05-22 21:20:24 -05:00
|
|
|
|
2017-10-31 16:10:38 -05:00
|
|
|
#define BOARD_DUE3DOM 1411 // DUE3DOM for Arduino DUE
|
|
|
|
#define BOARD_DUE3DOM_MINI 1412 // DUE3DOM MINI for Arduino DUE
|
|
|
|
#define BOARD_RADDS 1502 // RADDS
|
|
|
|
#define BOARD_RAMPS_FD_V1 1503 // RAMPS-FD v1
|
|
|
|
#define BOARD_RAMPS_FD_V2 1504 // RAMPS-FD v2
|
|
|
|
#define BOARD_RAMPS_SMART_EFB 1523 // RAMPS-SMART (Power outputs: Hotend, Fan, Bed)
|
|
|
|
#define BOARD_RAMPS_SMART_EEB 1524 // RAMPS-SMART (Power outputs: Hotend0, Hotend1, Bed)
|
|
|
|
#define BOARD_RAMPS_SMART_EFF 1525 // RAMPS-SMART (Power outputs: Hotend, Fan0, Fan1)
|
|
|
|
#define BOARD_RAMPS_SMART_EEF 1526 // RAMPS-SMART (Power outputs: Hotend0, Hotend1, Fan)
|
|
|
|
#define BOARD_RAMPS_SMART_SF 1528 // RAMPS-SMART (Power outputs: Spindle, Controller Fan)
|
|
|
|
#define BOARD_RAMPS_DUO_EFB 1533 // RAMPS Duo (Power outputs: Hotend, Fan, Bed)
|
|
|
|
#define BOARD_RAMPS_DUO_EEB 1534 // RAMPS Duo (Power outputs: Hotend0, Hotend1, Bed)
|
|
|
|
#define BOARD_RAMPS_DUO_EFF 1535 // RAMPS Duo (Power outputs: Hotend, Fan0, Fan1)
|
|
|
|
#define BOARD_RAMPS_DUO_EEF 1536 // RAMPS Duo (Power outputs: Hotend0, Hotend1, Fan)
|
|
|
|
#define BOARD_RAMPS_DUO_SF 1538 // RAMPS Duo (Power outputs: Spindle, Controller Fan)
|
|
|
|
#define BOARD_RAMPS4DUE_EFB 1543 // RAMPS4DUE (Power outputs: Hotend, Fan, Bed)
|
|
|
|
#define BOARD_RAMPS4DUE_EEB 1544 // RAMPS4DUE (Power outputs: Hotend0, Hotend1, Bed)
|
|
|
|
#define BOARD_RAMPS4DUE_EFF 1545 // RAMPS4DUE (Power outputs: Hotend, Fan0, Fan1)
|
|
|
|
#define BOARD_RAMPS4DUE_EEF 1546 // RAMPS4DUE (Power outputs: Hotend0, Hotend1, Fan)
|
|
|
|
#define BOARD_RAMPS4DUE_SF 1548 // RAMPS4DUE (Power outputs: Spindle, Controller Fan)
|
2018-07-25 19:32:27 -05:00
|
|
|
#define BOARD_RURAMPS4D_11 1550 // RuRAMPS4Duo v1.1 (Power outputs: Hotend0, Hotend1, Hotend2, Fan0, Fan1, Bed)
|
|
|
|
#define BOARD_RURAMPS4D_13 1551 // RuRAMPS4Duo v1.3 (Power outputs: Hotend0, Hotend1, Hotend2, Fan0, Fan1, Bed)
|
2017-11-21 03:13:59 -06:00
|
|
|
#define BOARD_ULTRATRONICS_PRO 1560 // ReprapWorld Ultratronics Pro V1.0
|
2018-11-14 00:27:39 -06:00
|
|
|
#define BOARD_ARCHIM1 1591 // UltiMachine Archim1 (with DRV8825 drivers)
|
|
|
|
#define BOARD_ARCHIM2 1592 // UltiMachine Archim2 (with TMC2130 drivers)
|
2017-10-31 16:10:38 -05:00
|
|
|
#define BOARD_ALLIGATOR 1602 // Alligator Board R2
|
2019-01-19 23:43:32 -06:00
|
|
|
#define BOARD_ADSK 1610 // Arduino DUE Shield Kit (ADSK)
|
2017-10-31 16:10:38 -05:00
|
|
|
|
|
|
|
//
|
2018-05-22 02:56:51 -05:00
|
|
|
// STM32 ARM Cortex-M3
|
2017-10-31 16:10:38 -05:00
|
|
|
//
|
2018-05-22 21:20:24 -05:00
|
|
|
|
2018-05-31 00:11:38 -05:00
|
|
|
#define BOARD_STM32F1R 1800 // STM32R Libmaple based STM32F1 controller
|
[2.0.x] Multiple updates to STM32F1 HAL (#8733)
* STM32F1 HAL
Adding files for STM32F1 HAL based on libmaple/stm32duino core.
Current persistent_store uses cardreader changes to be sent in separate
commit, but could be changed to use i2c eeprom.
There is another persistent_store implementation that uses the MCU flash memory
to emulate eeprom
Adding readme with some information about the stm32 HAL.
* Switch to Timer4 to avoid a hard reset on STM32F103C6 boards
On bluepill STM32F103C6 boards, using Timer5 results in a error() vector call. Switch to 4 since these are both general purpose, 16 bit timers.
* Add support for EEPROM emulation using Flash
Some low end machines doe not have EEPROM support. Simulate it using the last two pages of flash. Flash does not allow rewrite between erases, so skip writing the working version if that's enabled.
* Basic Pins for a malyan M200
This is a work in progress to go hand in hand with the STM32 work.
* Add support for ADC with DMA. This work has exposed a problem with the pin enumerations in STM boards vs what marlin expects (i.e, try defining PA0 as a temp pin). The hack can be removed with we go to fastio completely. To see this work, set something in adc_pins to a value like PA0 and connect your pullup resistor'd thermistor.
* Missing file - change HAL_adc_init to actually do something
We have an actual ADC init function now.
* Remove pinmode hack
Remove the pin mode hack that I was using to init PA0.
Updated Readme.md
* Several changes to timers and GPIO
Faster GPIO, and faster timer functions by accesing registers and
libmaple.
Still more changes pending for the Timer's code to skip using the
HardwareTimer class altogether.
Switch all enums to be within #defines
This change allows a user to have, for instance, TEMP_4 and TEMP_BED definied but nothing else. The enums which are not defined move "out", allowing the first ones to take the slots in the enum, and since the array is sized on ADC_PIN_COUNT, we always have the right size data and in order.
* Update Malyan M200 pins
Update Malyan M200 pins with correct fan values.
* Test all pins on actual hardware, update definitions
Some of the pin definitions were from knowlege base/pdfs. Now they've been tested against actual hardware. This should be very close to final.
* Update HAL_timers_Stm32f1.cpp
* Add sample configurations for Malyan M200
Add sample configuration for Malyan M200 without bed leveling, and move fan to auto cool E0 since this printer by default has only one fan.
Choose the timer based on MCU defintion. Timer5 is not valid on C8/CB class boards, so use Timer4 for the step timer.
readme.md update
* Updates to timers, and some stm32 boards definitiions
* Correct pin toggle macro.
* Remove duplicated Malyan M200 entry from pins.h
* Update configuration_store.cpp
* Formatting, indentation
* Formatting in HAL_Stm32f1.cpp
2017-12-10 23:12:45 -06:00
|
|
|
#define BOARD_MALYAN_M200 1801 // STM32C8T6 Libmaple based stm32f1 controller
|
2018-02-13 03:46:56 -06:00
|
|
|
#define BOARD_STM3R_MINI 1803 // STM32 Libmaple based stm32f1 controller
|
2018-05-31 00:11:38 -05:00
|
|
|
#define BOARD_GTM32_PRO_VB 1805 // STM32f103VET6 controller
|
2018-08-27 21:28:03 -05:00
|
|
|
#define BOARD_MORPHEUS 1806 // STM32F103C8/STM32F103CB Libmaple based stm32f1 controller
|
2018-12-20 17:23:27 -06:00
|
|
|
#define BOARD_MKS_ROBIN 1808 // MKS Robin / STM32F103ZET6
|
2018-05-22 02:56:51 -05:00
|
|
|
|
|
|
|
//
|
|
|
|
// STM32 ARM Cortex-M4F
|
|
|
|
//
|
2018-05-22 21:20:24 -05:00
|
|
|
|
2018-08-27 21:49:49 -05:00
|
|
|
#define BOARD_TEENSY31_32 1552 // Teensy3.1 and Teensy3.2
|
2018-05-22 02:56:51 -05:00
|
|
|
#define BOARD_TEENSY35_36 841 // Teensy3.5 and Teensy3.6
|
|
|
|
#define BOARD_BEAST 1802 // STM32FxxxVxT6 Libmaple based stm32f4 controller
|
2018-04-17 17:33:29 -05:00
|
|
|
#define BOARD_STM32F4 1804 // STM32 STM32GENERIC based STM32F4 controller
|
2018-10-19 14:50:52 -05:00
|
|
|
#define BOARD_ARMED 1807 // Arm'ed STM32F4 based controller
|
2019-01-10 19:34:31 -06:00
|
|
|
#define BOARD_RUMBA32 1809 // RUMBA32 STM32F4 based controller
|
2019-01-15 18:59:36 -06:00
|
|
|
#define BOARD_STEVAL 1866 // STEVAL-3DP001V1 3D PRINTER BOARD
|
2014-12-18 14:02:36 -06:00
|
|
|
|
2018-01-11 15:29:08 -06:00
|
|
|
//
|
|
|
|
// ARM Cortex M7
|
|
|
|
//
|
2018-05-22 21:20:24 -05:00
|
|
|
|
2018-01-11 15:29:08 -06:00
|
|
|
#define BOARD_THE_BORG 1860 // THE-BORG (Power outputs: Hotend0, Hotend1, Bed, Fan)
|
2018-10-03 03:26:07 -05:00
|
|
|
#define BOARD_REMRAM_V1 1862 // RemRam v1
|
2018-01-11 15:29:08 -06:00
|
|
|
|
2017-10-08 11:38:10 -05:00
|
|
|
//
|
|
|
|
// Espressif ESP32 WiFi
|
|
|
|
//
|
|
|
|
#define BOARD_ESP32 1900
|
2018-01-11 15:29:08 -06:00
|
|
|
|
2018-06-08 19:58:43 -05:00
|
|
|
#define MB(board) (defined(BOARD_##board) && MOTHERBOARD==BOARD_##board)
|