-
-
Notifications
You must be signed in to change notification settings - Fork 19.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New ESP32 boards, Panda_ZHU and Panda_M4 #22644
Merged
Merged
Changes from 15 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
e2877b5
add Panda_M4 and Panda_ZHU boards pins file based on esp32
markniu e38b0de
fix hot bed not cool down after print job done
cytown cff59f0
Merge branch 'bugfix-2.0.x' into pr/22640
markniu 1d4d060
fix esp32 compile error
markniu aac112e
Cleanup
thinkyhead 5253e77
Misc. unrelated cleanup
thinkyhead 1bb90df
Merge 'upstream/bugfix-2.0.x' into pr/22644
thinkyhead 2b02401
name tweaks
thinkyhead 5cec584
Fix MB usage
thinkyhead ad0e0b9
combine common
thinkyhead 06479d4
tweak spacing
thinkyhead 31b71f9
Generalize with build flags
thinkyhead ec6c392
update pins for Pandaboard of ESP32
markniu 14e8b63
Update HAL_SPI.cpp
thinkyhead def031f
Update pins_PANDA_common.h
thinkyhead 3a94eb5
Tweak spiBegin
thinkyhead 5911dae
Merge remote-tracking branch 'upstream/bugfix-2.0.x' into pr/22644
thinkyhead File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Name, Type, SubType, Offset, Size, Flags | ||
nvs, data, nvs, 0x9000, 0x5000, | ||
otadata, data, ota, 0xe000, 0x2000, | ||
app0, app, ota_0, 0x10000, 0x180000, | ||
app1, app, ota_1, 0x190000, 0x180000, | ||
spiffs, data, spiffs, 0x310000, 0xF0000, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/** | ||
* Marlin 3D Printer Firmware | ||
* Copyright (c) 2021 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 <https://www.gnu.org/licenses/>. | ||
* | ||
*/ | ||
#pragma once | ||
|
||
/** | ||
* Panda M4 pin assignments | ||
*/ | ||
|
||
#define BOARD_INFO_NAME "Panda_M4" | ||
|
||
#include "pins_PANDA_common.h" | ||
|
||
// | ||
// Steppers | ||
// | ||
#define X_ENABLE_PIN 115 | ||
#define Y_ENABLE_PIN 114 | ||
#define Z_ENABLE_PIN 113 | ||
#define E0_ENABLE_PIN 112 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
/** | ||
* Marlin 3D Printer Firmware | ||
* Copyright (c) 2021 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 <https://www.gnu.org/licenses/>. | ||
* | ||
*/ | ||
#pragma once | ||
|
||
/** | ||
* Panda ZHU pin assignments | ||
*/ | ||
|
||
#define BOARD_INFO_NAME "Panda_ZHU" | ||
|
||
#include "pins_PANDA_common.h" | ||
|
||
// | ||
// Steppers | ||
// | ||
#define X_ENABLE_PIN 128 // Shared with all steppers | ||
#define Y_ENABLE_PIN X_ENABLE_PIN | ||
#define Z_ENABLE_PIN X_ENABLE_PIN | ||
#define E0_ENABLE_PIN X_ENABLE_PIN | ||
|
||
//#define X_CS_PIN 0 | ||
//#define Y_CS_PIN 13 | ||
//#define Z_CS_PIN 5 // SS_PIN | ||
//#define E0_CS_PIN 21 | ||
|
||
#define E1_STEP_PIN 115 | ||
#define E1_DIR_PIN 114 | ||
#define E1_ENABLE_PIN X_ENABLE_PIN | ||
|
||
#define E2_STEP_PIN 112 | ||
#define E2_DIR_PIN 113 | ||
#define E2_ENABLE_PIN X_ENABLE_PIN | ||
|
||
#define E3_STEP_PIN 110 | ||
#define E3_DIR_PIN 111 | ||
#define E3_ENABLE_PIN X_ENABLE_PIN | ||
|
||
#define E4_STEP_PIN 121 | ||
#define E4_DIR_PIN 122 | ||
#define E4_ENABLE_PIN X_ENABLE_PIN | ||
|
||
#define HEATER_1_PIN 123 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
/** | ||
* Marlin 3D Printer Firmware | ||
* Copyright (c) 2021 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 <https://www.gnu.org/licenses/>. | ||
* | ||
*/ | ||
#pragma once | ||
|
||
/** | ||
* Panda common pin assignments | ||
*/ | ||
|
||
#include "env_validate.h" | ||
|
||
#define DEFAULT_MACHINE_NAME BOARD_INFO_NAME | ||
|
||
// | ||
// Servos | ||
// | ||
#define SERVO0_PIN 0 | ||
|
||
// | ||
// Limit Switches | ||
// | ||
#define X_STOP_PIN 4 | ||
#define Y_STOP_PIN 35 | ||
#define Z_STOP_PIN 21 | ||
|
||
// | ||
// Steppers | ||
// | ||
#define X_STEP_PIN 101 | ||
#define X_DIR_PIN 100 | ||
|
||
#define Y_STEP_PIN 103 | ||
#define Y_DIR_PIN 102 | ||
|
||
#define Z_STEP_PIN 105 | ||
#define Z_DIR_PIN 104 | ||
|
||
#define E0_STEP_PIN 107 | ||
#define E0_DIR_PIN 106 | ||
|
||
// | ||
// Temperature Sensors | ||
// | ||
#define TEMP_0_PIN 39 // Analog Input | ||
#define TEMP_BED_PIN 36 // Analog Input | ||
|
||
// | ||
// Heaters / Fans | ||
// | ||
#define HEATER_0_PIN 108 | ||
#define HEATER_BED_PIN 109 | ||
#define FAN_PIN 118 // FAN0 | ||
#define FAN1_PIN 119 // FAN1 | ||
|
||
#ifndef E0_AUTO_FAN_PIN | ||
#define E0_AUTO_FAN_PIN 120 // FAN2 | ||
#endif | ||
|
||
// | ||
// SD card | ||
// | ||
#if ENABLED(SDSUPPORT) | ||
#define SD_MOSI_PIN 23 | ||
#define SD_MISO_PIN 19 | ||
#define SD_SCK_PIN 18 | ||
#define SDSS 5 | ||
#define SD_DETECT_PIN 2 | ||
#endif | ||
|
||
#if HAS_WIRED_LCD | ||
#define BEEPER_PIN 129 | ||
#define BTN_ENC 12 | ||
|
||
#define BTN_EN1 33 | ||
#define BTN_EN2 32 | ||
|
||
#define LCD_PINS_RS 27 | ||
#define LCD_PINS_ENABLE 26 | ||
#define LCD_PINS_D4 14 | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In case this seems weird, I guess the background is this: Just about every board has
SD_SS_PIN
so this is the minimal initialization of the SPI bus to make sure there are no active devices at startup. The casual reader might forget that CS is active-low, so we might want to add comments to all the SPI code that touches SS/CS pins as a reminder.