Skip to content

Commit

Permalink
Merge branch 'bugfix-2.1.x' of https://github.com/MarlinFirmware/Marlin
Browse files Browse the repository at this point in the history
… into feature/bugfix-2.1.x

* 'bugfix-2.1.x' of https://github.com/MarlinFirmware/Marlin: (61 commits)
  🔨 Fix BTT EBB42 V1.1 compile with -flto (MarlinFirmware#25849)
  [cron] Bump distribution date (2023-05-22)
  🧑‍💻 Fall back to SPI0 with YHCB2004 (MarlinFirmware#25856)
  🩹 Fix ProUI Manual Mesh / UBL Viewer (MarlinFirmware#25858)
  🩹 Fix TFT LVGL compile error (MarlinFirmware#25865)
  [cron] Bump distribution date (2023-05-21)
  📝 MKS TinyBee pins header
  🚸 Improve EEPROM validation (MarlinFirmware#25860)
  [cron] Bump distribution date (2023-05-20)
  🎨 Cutter pins cleanup
  [cron] Bump distribution date (2023-05-19)
  🩹 M493 report followup
  ✨ I3DBEEZ9 board (MarlinFirmware#25614)
  🔨 Fix Windows path backslash treated as escape
  [cron] Bump distribution date (2023-05-18)
  🚸 Unify edit limits for some E3V2 LCDs (MarlinFirmware#25045)
  [cron] Bump distribution date (2023-05-17)
  🐛 Fix MKS Robin Nano 1.3 F4 pin collision (MarlinFirmware#25838)
  🚸 Support Bed Leveling Mesh > 16x16
  🔧 TMC Config Inheritance followup (MarlinFirmware#25783)
  ...

Signed-off-by: Nick Snyder <nick@nicksnyder.is>

# Conflicts:
#	config/ncksnydr/narungol/2.1/Configuration.h
  • Loading branch information
ncksnydr committed May 22, 2023
2 parents a20ca65 + 9ceecef commit 2678104
Show file tree
Hide file tree
Showing 212 changed files with 8,674 additions and 5,050 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/test-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ jobs:

# AVR
- mega2560
- mega1280
- at90usb1286_dfu

# AVR Extended
- FYSETC_F6
- mega1280
- melzi_optiboot
- rambo
- sanguino1284p
Expand Down Expand Up @@ -105,10 +105,12 @@ jobs:
- FYSETC_S6
- LERDGEK
- LERDGEX
- mks_robin_pro2
- Opulo_Lumen_REV3
- rumba32
- STM32F401RC_creality
- STM32F407VE_black
- I3DBEEZ9_V1

# STM32F7
- NUCLEO_F767ZI
Expand Down
2 changes: 1 addition & 1 deletion Marlin/Version.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
* here we define this default string as the date where the latest release
* version was tagged.
*/
//#define STRING_DISTRIBUTION_DATE "2023-05-09"
//#define STRING_DISTRIBUTION_DATE "2023-05-22"

/**
* Defines a generic printer name to be output to the LCD after booting Marlin.
Expand Down
10 changes: 5 additions & 5 deletions Marlin/config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ preheat_1_temp_hotend = 180
bang_max = 255
pidtemp = on
pid_k1 = 0.95
pid_max = BANG_MAX
pid_max = 255
pid_functional_range = 10

default_kp = 22.20
Expand Down Expand Up @@ -96,10 +96,10 @@ step_state_x = HIGH
step_state_y = HIGH
step_state_z = HIGH

disable_x = false
disable_y = false
disable_z = false
disable_e = false
disable_x = off
disable_y = off
disable_z = off
disable_e = off

proportional_font_ratio = 1.0
default_nominal_filament_dia = 1.75
Expand Down
49 changes: 23 additions & 26 deletions Marlin/src/HAL/AVR/fastio/fastio_1280.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,39 +35,36 @@

#include "../fastio.h"

// change for your board
#define DEBUG_LED DIO21

// UART
#define RXD DIO0
#define TXD DIO1
#define RXD 0
#define TXD 1

// SPI
#define SCK DIO52
#define MISO DIO50
#define MOSI DIO51
#define SS DIO53
#define MISO 50
#define MOSI 51
#define SCK 52
#define SS 53

// TWI (I2C)
#define SCL DIO21
#define SDA DIO20
#define SCL 21
#define SDA 20

// Timers and PWM
#define OC0A DIO13
#define OC0B DIO4
#define OC1A DIO11
#define OC1B DIO12
#define OC2A DIO10
#define OC2B DIO9
#define OC3A DIO5
#define OC3B DIO2
#define OC3C DIO3
#define OC4A DIO6
#define OC4B DIO7
#define OC4C DIO8
#define OC5A DIO46
#define OC5B DIO45
#define OC5C DIO44
#define OC0A 13
#define OC0B 4
#define OC1A 11
#define OC1B 12
#define OC2A 10
#define OC2B 9
#define OC3A 5
#define OC3B 2
#define OC3C 3
#define OC4A 6
#define OC4B 7
#define OC4C 8
#define OC5A 46
#define OC5B 45
#define OC5C 44

// Digital I/O

Expand Down
35 changes: 16 additions & 19 deletions Marlin/src/HAL/AVR/fastio/fastio_1281.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,32 +33,29 @@

#include "../fastio.h"

// change for your board
#define DEBUG_LED DIO46

// UART
#define RXD DIO0
#define TXD DIO1
#define RXD 0
#define TXD 1

// SPI
#define SCK DIO10
#define MISO DIO12
#define MOSI DIO11
#define SS DIO16
#define SCK 10
#define MISO 12
#define MOSI 11
#define SS 16

// TWI (I2C)
#define SCL DIO17
#define SDA DIO18
#define SCL 17
#define SDA 18

// Timers and PWM
#define OC0A DIO9
#define OC0B DIO4
#define OC1A DIO7
#define OC1B DIO8
#define OC2A DIO6
#define OC3A DIO5
#define OC3B DIO2
#define OC3C DIO3
#define OC0A 9
#define OC0B 4
#define OC1A 7
#define OC1B 8
#define OC2A 6
#define OC3A 5
#define OC3B 2
#define OC3C 3

// Digital I/O

Expand Down
26 changes: 12 additions & 14 deletions Marlin/src/HAL/AVR/fastio/fastio_168.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,29 +33,27 @@

#include "../fastio.h"

#define DEBUG_LED AIO5

// UART
#define RXD DIO0
#define TXD DIO1
#define RXD 0
#define TXD 1

// SPI
#define SCK DIO13
#define MISO DIO12
#define MOSI DIO11
#define SS DIO10
#define SS 10
#define MOSI 11
#define MISO 12
#define SCK 13

// TWI (I2C)
#define SCL AIO5
#define SDA AIO4

// Timers and PWM
#define OC0A DIO6
#define OC0B DIO5
#define OC1A DIO9
#define OC1B DIO10
#define OC2A DIO11
#define OC2B DIO3
#define OC0A 6
#define OC0B 5
#define OC1A 9
#define OC1B 10
#define OC2A 11
#define OC2B 3

// Digital I/O

Expand Down
38 changes: 18 additions & 20 deletions Marlin/src/HAL/AVR/fastio/fastio_644.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,34 +59,32 @@

#include "../fastio.h"

#define DEBUG_LED DIO0

// UART
#define RXD DIO8
#define TXD DIO9
#define RXD0 DIO8
#define TXD0 DIO9
#define RXD 8
#define TXD 9
#define RXD0 8
#define TXD0 9

#define RXD1 DIO10
#define TXD1 DIO11
#define RXD1 10
#define TXD1 11

// SPI
#define SCK DIO7
#define MISO DIO6
#define MOSI DIO5
#define SS DIO4
#define SS 4
#define MOSI 5
#define MISO 6
#define SCK 7

// TWI (I2C)
#define SCL DIO16
#define SDA DIO17
#define SCL 16
#define SDA 17

// Timers and PWM
#define OC0A DIO3
#define OC0B DIO4
#define OC1A DIO13
#define OC1B DIO12
#define OC2A DIO15
#define OC2B DIO14
#define OC0A 3
#define OC0B 4
#define OC1A 13
#define OC1B 12
#define OC2A 15
#define OC2B 14

// Digital I/O

Expand Down
11 changes: 4 additions & 7 deletions Marlin/src/HAL/AVR/fastio/fastio_AT90USB.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,11 @@

#include "../fastio.h"

// change for your board
#define DEBUG_LED DIO31 /* led D5 red */

// SPI
#define SCK DIO21 // 9
#define MISO DIO23 // 11
#define MOSI DIO22 // 10
#define SS DIO20 // 8
#define SS 20 // 8
#define SCK 21 // 9
#define MOSI 22 // 10
#define MISO 23 // 11

// Digital I/O

Expand Down
72 changes: 33 additions & 39 deletions Marlin/src/HAL/AVR/pinsDebug.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ void PRINT_ARRAY_NAME(uint8_t x) {
* Print a pin's PWM status.
* Return true if it's currently a PWM pin.
*/
static bool pwm_status(uint8_t pin) {
bool pwm_status(uint8_t pin) {
char buffer[20]; // for the sprintf statements

switch (digitalPinToTimer_DEBUG(pin)) {
Expand Down Expand Up @@ -232,12 +232,12 @@ const volatile uint8_t* const PWM_OCR[][3] PROGMEM = {

#define OCR_VAL(T, L) pgm_read_word(&PWM_OCR[T][L])

static void err_is_counter() { SERIAL_ECHOPGM(" non-standard PWM mode"); }
static void err_is_interrupt() { SERIAL_ECHOPGM(" compare interrupt enabled"); }
static void err_prob_interrupt() { SERIAL_ECHOPGM(" overflow interrupt enabled"); }
static void print_is_also_tied() { SERIAL_ECHOPGM(" is also tied to this pin"); SERIAL_ECHO_SP(14); }
void err_is_counter() { SERIAL_ECHOPGM(" non-standard PWM mode"); }
void err_is_interrupt() { SERIAL_ECHOPGM(" compare interrupt enabled"); }
void err_prob_interrupt() { SERIAL_ECHOPGM(" overflow interrupt enabled"); }
void print_is_also_tied() { SERIAL_ECHOPGM(" is also tied to this pin"); SERIAL_ECHO_SP(14); }

inline void com_print(const uint8_t N, const uint8_t Z) {
void com_print(const uint8_t N, const uint8_t Z) {
const uint8_t *TCCRA = (uint8_t*)TCCR_A(N);
SERIAL_ECHOPGM(" COM", AS_DIGIT(N));
SERIAL_CHAR(Z);
Expand Down Expand Up @@ -279,7 +279,7 @@ void timer_prefix(uint8_t T, char L, uint8_t N) { // T - timer L - pwm N -
if (TEST(*TMSK, TOIE)) err_prob_interrupt();
}

static void pwm_details(uint8_t pin) {
void pwm_details(uint8_t pin) {
switch (digitalPinToTimer_DEBUG(pin)) {

#if ABTEST(0)
Expand Down Expand Up @@ -353,47 +353,41 @@ static void pwm_details(uint8_t pin) {
} // pwm_details

#ifndef digitalRead_mod // Use Teensyduino's version of digitalRead - it doesn't disable the PWMs
int digitalRead_mod(const int8_t pin) { // same as digitalRead except the PWM stop section has been removed
int digitalRead_mod(const pin_t pin) { // same as digitalRead except the PWM stop section has been removed
const uint8_t port = digitalPinToPort_DEBUG(pin);
return (port != NOT_A_PIN) && (*portInputRegister(port) & digitalPinToBitMask_DEBUG(pin)) ? HIGH : LOW;
}
#endif

#ifndef PRINT_PORT

void print_port(int8_t pin) { // print port number
#ifdef digitalPinToPort_DEBUG
uint8_t x;
SERIAL_ECHOPGM(" Port: ");
#if AVR_AT90USB1286_FAMILY
x = (pin == 46 || pin == 47) ? 'E' : digitalPinToPort_DEBUG(pin) + 64;
#else
x = digitalPinToPort_DEBUG(pin) + 64;
#endif
SERIAL_CHAR(x);

#if AVR_AT90USB1286_FAMILY
if (pin == 46)
x = '2';
else if (pin == 47)
x = '3';
else {
uint8_t temp = digitalPinToBitMask_DEBUG(pin);
for (x = '0'; x < '9' && temp != 1; x++) temp >>= 1;
}
#else
void print_port(const pin_t pin) { // print port number
#ifdef digitalPinToPort_DEBUG
uint8_t x;
SERIAL_ECHOPGM(" Port: ");
#if AVR_AT90USB1286_FAMILY
x = (pin == 46 || pin == 47) ? 'E' : digitalPinToPort_DEBUG(pin) + 64;
#else
x = digitalPinToPort_DEBUG(pin) + 64;
#endif
SERIAL_CHAR(x);

#if AVR_AT90USB1286_FAMILY
if (pin == 46)
x = '2';
else if (pin == 47)
x = '3';
else {
uint8_t temp = digitalPinToBitMask_DEBUG(pin);
for (x = '0'; x < '9' && temp != 1; x++) temp >>= 1;
#endif
SERIAL_CHAR(x);
}
#else
SERIAL_ECHO_SP(10);
uint8_t temp = digitalPinToBitMask_DEBUG(pin);
for (x = '0'; x < '9' && temp != 1; x++) temp >>= 1;
#endif
}

#define PRINT_PORT(p) print_port(p)

#endif
SERIAL_CHAR(x);
#else
SERIAL_ECHO_SP(10);
#endif
}

#define PRINT_PIN(p) do{ sprintf_P(buffer, PSTR("%3d "), p); SERIAL_ECHO(buffer); }while(0)
#define PRINT_PIN_ANALOG(p) do{ sprintf_P(buffer, PSTR(" (A%2d) "), DIGITAL_PIN_TO_ANALOG_PIN(pin)); SERIAL_ECHO(buffer); }while(0)
Expand Down
Loading

0 comments on commit 2678104

Please sign in to comment.