diff --git a/Marlin/src/HAL/HAL_STM32/HAL_spi_STM32.cpp b/Marlin/src/HAL/HAL_STM32/HAL_spi_STM32.cpp index ccaee992deab1cc6dd494d6c6240f6f78ff721d4..5f9bbc33b4653706e2f9ebaea53719709d7c4b8f 100644 --- a/Marlin/src/HAL/HAL_STM32/HAL_spi_STM32.cpp +++ b/Marlin/src/HAL/HAL_STM32/HAL_spi_STM32.cpp @@ -48,7 +48,7 @@ static SPISettings spiConfig; // -------------------------------------------------------------------------- // Software SPI // -------------------------------------------------------------------------- - #error "Software SPI not supported for STM32F7. Use Hardware SPI." + #error "Software SPI not supported for STM32. Use Hardware SPI." #else diff --git a/Marlin/src/HAL/HAL_STM32/fastio_STM32.h b/Marlin/src/HAL/HAL_STM32/fastio_STM32.h index 1287976c7aed21a6349719cd37d98c957f8f7515..d348e739a8f33f624c922614d3509f4263de1dc1 100644 --- a/Marlin/src/HAL/HAL_STM32/fastio_STM32.h +++ b/Marlin/src/HAL/HAL_STM32/fastio_STM32.h @@ -23,7 +23,7 @@ #pragma once /** - * Fast I/O interfaces for STM32F7 + * Fast I/O interfaces for STM32 * These use GPIO functions instead of Direct Port Manipulation, as on AVR. */ @@ -50,5 +50,5 @@ #define GET_OUTPUT(IO) #define GET_TIMER(IO) -#define PWM_PIN(p) true +#define PWM_PIN(p) digitalPinHasPWM(p) #define USEABLE_HARDWARE_PWM(p) PWM_PIN(p) diff --git a/Marlin/src/HAL/HAL_STM32F1/fastio_Stm32f1.h b/Marlin/src/HAL/HAL_STM32F1/fastio_Stm32f1.h index 117d4c00b5dc0cb4c4aa72e09d0f4a9617dfc1b6..e58ab8251c121c52b039357971d162f68c603890 100644 --- a/Marlin/src/HAL/HAL_STM32F1/fastio_Stm32f1.h +++ b/Marlin/src/HAL/HAL_STM32F1/fastio_Stm32f1.h @@ -50,7 +50,7 @@ #define GET_OUTPUT(IO) (_GET_MODE(IO) == GPIO_OUTPUT_PP) #define GET_TIMER(IO) (PIN_MAP[IO].timer_device != NULL) -#define PWM_PIN(p) digitalPinHasPWM(p) +#define PWM_PIN(p) true #define USEABLE_HARDWARE_PWM(p) PWM_PIN(p) #endif // _FASTIO_STM32F1_H diff --git a/Marlin/src/HAL/HAL_STM32F4/fastio_STM32F4.h b/Marlin/src/HAL/HAL_STM32F4/fastio_STM32F4.h index 14596e8fb5709791c77150a599d88c6f9798a46a..222f6dc51890defd8be037b58dca42d1e91a5482 100644 --- a/Marlin/src/HAL/HAL_STM32F4/fastio_STM32F4.h +++ b/Marlin/src/HAL/HAL_STM32F4/fastio_STM32F4.h @@ -53,7 +53,7 @@ #define GET_OUTPUT(IO) #define GET_TIMER(IO) -#define PWM_PIN(p) digitalPinHasPWM(p) +#define PWM_PIN(p) true #define USEABLE_HARDWARE_PWM(p) PWM_PIN(p) // diff --git a/Marlin/src/HAL/HAL_STM32F7/fastio_STM32F7.h b/Marlin/src/HAL/HAL_STM32F7/fastio_STM32F7.h index 0422bf47a08e66619761c52c634f8225f72510a1..9aa43ccfc5c3732632e55c7c5309b128d3e453ec 100644 --- a/Marlin/src/HAL/HAL_STM32F7/fastio_STM32F7.h +++ b/Marlin/src/HAL/HAL_STM32F7/fastio_STM32F7.h @@ -52,7 +52,7 @@ #define GET_OUTPUT(IO) #define GET_TIMER(IO) -#define PWM_PIN(p) digitalPinHasPWM(p) +#define PWM_PIN(p) true #define USEABLE_HARDWARE_PWM(p) PWM_PIN(p) //