Spacing, defined(), #include tweaks
This commit is contained in:
parent
7ebfae27e3
commit
d25231aea8
|
@ -65,7 +65,7 @@ Timer get_pwm_timer(const pin_t pin) {
|
|||
/*n, q*/ 2, 0
|
||||
};
|
||||
}
|
||||
#elif defined TCCR2A
|
||||
#elif defined(TCCR2A)
|
||||
#if ENABLED(USE_OCR2A_AS_TOP)
|
||||
case TIMER2A: break; // protect TIMER2A
|
||||
case TIMER2B: {
|
||||
|
|
|
@ -27,9 +27,10 @@
|
|||
#include "../shared/HAL_SPI.h"
|
||||
#include <pins_arduino.h>
|
||||
#include "spi_pins.h"
|
||||
#include "../../core/macros.h"
|
||||
#include <SPI.h>
|
||||
|
||||
#include "../../core/macros.h"
|
||||
|
||||
// ------------------------
|
||||
// Public Variables
|
||||
// ------------------------
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
#if ENABLED(WEBSUPPORT)
|
||||
|
||||
#include <SPIFFS.h>
|
||||
|
||||
#include "wifi.h"
|
||||
|
||||
AsyncEventSource events("/events"); // event source (Server-Sent events)
|
||||
|
|
|
@ -313,10 +313,12 @@ void TMC26XStepper::setCurrent(uint16_t current) {
|
|||
current_scaling = (byte)((resistor_value * mASetting * 32.0 / (0.165 * sq(1000.0))) - 0.5); //theoretically - 1.0 for better rounding it is 0.5
|
||||
#ifdef TMC_DEBUG0 // crashes
|
||||
SERIAL_ECHOPAIR("\nCS (Vsense=1): ",current_scaling);
|
||||
} else {
|
||||
SERIAL_ECHOPAIR("\nCS: ", current_scaling);
|
||||
#endif
|
||||
}
|
||||
#ifdef TMC_DEBUG0 // crashes
|
||||
else
|
||||
SERIAL_ECHOPAIR("\nCS: ", current_scaling);
|
||||
#endif
|
||||
|
||||
// do some sanity checks
|
||||
NOMORE(current_scaling, 31);
|
||||
|
|
|
@ -201,7 +201,8 @@ class CachedScreen {
|
|||
|
||||
if (dlcache.has_data()) {
|
||||
dlcache.append();
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
current_screen.onRedraw(BACKGROUND);
|
||||
dlcache.store(DL_SIZE);
|
||||
}
|
||||
|
|
|
@ -47,15 +47,15 @@ extern const PinName digitalPin[];
|
|||
#define STM32F4X_PIN_NUM 64 //64 pins mcu, 51 gpio
|
||||
#define STM32F4X_GPIO_NUM 51
|
||||
#define STM32F4X_ADC_NUM 16
|
||||
#elif defined STM32F407_5VX
|
||||
#elif defined(STM32F407_5VX)
|
||||
#define STM32F4X_PIN_NUM 100 //100 pins mcu, 82 gpio
|
||||
#define STM32F4X_GPIO_NUM 82
|
||||
#define STM32F4X_ADC_NUM 16
|
||||
#elif defined STM32F407_5ZX
|
||||
#elif defined(STM32F407_5ZX)
|
||||
#define STM32F4X_PIN_NUM 144 //144 pins mcu, 114 gpio
|
||||
#define STM32F4X_GPIO_NUM 114
|
||||
#define STM32F4X_ADC_NUM 24
|
||||
#elif defined STM32F407IX
|
||||
#elif defined(STM32F407IX)
|
||||
#define STM32F4X_PIN_NUM 176 //176 pins mcu, 140 gpio
|
||||
#define STM32F4X_GPIO_NUM 140
|
||||
#define STM32F4X_ADC_NUM 24
|
||||
|
|
Loading…
Reference in a new issue