Some ESP32 patches (#16297)
This commit is contained in:
parent
f4196d394b
commit
24eaf2d7e0
|
@ -25,14 +25,16 @@
|
||||||
|
|
||||||
#include <Stream.h>
|
#include <Stream.h>
|
||||||
|
|
||||||
#ifndef RX_BUFFER_SIZE
|
|
||||||
#define RX_BUFFER_SIZE 128
|
|
||||||
#endif
|
|
||||||
#ifndef TX_BUFFER_SIZE
|
#ifndef TX_BUFFER_SIZE
|
||||||
#define TX_BUFFER_SIZE 32
|
#define TX_BUFFER_SIZE 32
|
||||||
#endif
|
#endif
|
||||||
#if TX_BUFFER_SIZE <= 0
|
#if ENABLED(WIFISUPPORT)
|
||||||
#error "TX_BUFFER_SIZE is required for the WebSocket."
|
#ifndef RX_BUFFER_SIZE
|
||||||
|
#define RX_BUFFER_SIZE 128
|
||||||
|
#endif
|
||||||
|
#if TX_BUFFER_SIZE <= 0
|
||||||
|
#error "TX_BUFFER_SIZE is required for the WebSocket."
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef uint16_t ring_buffer_pos_t;
|
typedef uint16_t ring_buffer_pos_t;
|
||||||
|
|
|
@ -201,7 +201,7 @@ u8g_dev_t u8g_dev_st7920_128x64_HAL_4x_sw_spi = { u8g_dev_st7920_128x64_HAL_4x_f
|
||||||
U8G_PB_DEV(u8g_dev_st7920_128x64_HAL_hw_spi, LCD_PIXEL_WIDTH, LCD_PIXEL_HEIGHT, PAGE_HEIGHT, u8g_dev_st7920_128x64_HAL_fn, U8G_COM_ST7920_HAL_HW_SPI);
|
U8G_PB_DEV(u8g_dev_st7920_128x64_HAL_hw_spi, LCD_PIXEL_WIDTH, LCD_PIXEL_HEIGHT, PAGE_HEIGHT, u8g_dev_st7920_128x64_HAL_fn, U8G_COM_ST7920_HAL_HW_SPI);
|
||||||
u8g_dev_t u8g_dev_st7920_128x64_HAL_4x_hw_spi = { u8g_dev_st7920_128x64_HAL_4x_fn, &u8g_dev_st7920_128x64_HAL_4x_pb, U8G_COM_ST7920_HAL_HW_SPI };
|
u8g_dev_t u8g_dev_st7920_128x64_HAL_4x_hw_spi = { u8g_dev_st7920_128x64_HAL_4x_fn, &u8g_dev_st7920_128x64_HAL_4x_pb, U8G_COM_ST7920_HAL_HW_SPI };
|
||||||
|
|
||||||
#if NONE(__AVR__, ARDUINO_ARCH_STM32) || defined(U8G_HAL_LINKS)
|
#if NONE(__AVR__, ARDUINO_ARCH_STM32, ARDUINO_ARCH_ESP32) || defined(U8G_HAL_LINKS)
|
||||||
// Also use this device for HAL version of rrd class. This results in the same device being used
|
// Also use this device for HAL version of rrd class. This results in the same device being used
|
||||||
// for the ST7920 for HAL systems no matter what is selected in ultralcd_impl_DOGM.h.
|
// for the ST7920 for HAL systems no matter what is selected in ultralcd_impl_DOGM.h.
|
||||||
u8g_dev_t u8g_dev_st7920_128x64_rrd_sw_spi = { u8g_dev_st7920_128x64_HAL_4x_fn, &u8g_dev_st7920_128x64_HAL_4x_pb, U8G_COM_ST7920_HAL_SW_SPI };
|
u8g_dev_t u8g_dev_st7920_128x64_rrd_sw_spi = { u8g_dev_st7920_128x64_HAL_4x_fn, &u8g_dev_st7920_128x64_HAL_4x_pb, U8G_COM_ST7920_HAL_SW_SPI };
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
|
|
||||||
#include "../../inc/MarlinConfigPre.h"
|
#include "../../inc/MarlinConfigPre.h"
|
||||||
|
|
||||||
#if !defined(U8G_HAL_LINKS) && ANY(__AVR__, ARDUINO_ARCH_STM32)
|
#if !defined(U8G_HAL_LINKS) && ANY(__AVR__, ARDUINO_ARCH_STM32, ARDUINO_ARCH_ESP32)
|
||||||
|
|
||||||
#include "../../inc/MarlinConfig.h"
|
#include "../../inc/MarlinConfig.h"
|
||||||
|
|
||||||
|
|
|
@ -2276,7 +2276,7 @@ void Stepper::endstop_triggered(const AxisEnum axis) {
|
||||||
(axis == CORE_AXIS_2
|
(axis == CORE_AXIS_2
|
||||||
? CORESIGN(count_position[CORE_AXIS_1] - count_position[CORE_AXIS_2])
|
? CORESIGN(count_position[CORE_AXIS_1] - count_position[CORE_AXIS_2])
|
||||||
: count_position[CORE_AXIS_1] + count_position[CORE_AXIS_2]
|
: count_position[CORE_AXIS_1] + count_position[CORE_AXIS_2]
|
||||||
) * 0.5f
|
) * double(0.5)
|
||||||
#else // !IS_CORE
|
#else // !IS_CORE
|
||||||
count_position[axis]
|
count_position[axis]
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -715,7 +715,7 @@ monitor_speed = 250000
|
||||||
platform = espressif32
|
platform = espressif32
|
||||||
board = esp32dev
|
board = esp32dev
|
||||||
build_flags = ${common.build_flags} -DCORE_DEBUG_LEVEL=0
|
build_flags = ${common.build_flags} -DCORE_DEBUG_LEVEL=0
|
||||||
lib_deps =
|
lib_deps = ${common.lib_deps}
|
||||||
AsyncTCP=https://github.com/me-no-dev/AsyncTCP/archive/master.zip
|
AsyncTCP=https://github.com/me-no-dev/AsyncTCP/archive/master.zip
|
||||||
ESPAsyncWebServer=https://github.com/me-no-dev/ESPAsyncWebServer/archive/master.zip
|
ESPAsyncWebServer=https://github.com/me-no-dev/ESPAsyncWebServer/archive/master.zip
|
||||||
lib_ignore = LiquidCrystal, LiquidTWI2, SailfishLCD, SailfishRGB_LED
|
lib_ignore = LiquidCrystal, LiquidTWI2, SailfishLCD, SailfishRGB_LED
|
||||||
|
|
Loading…
Reference in a new issue