🏗️ Define HAL_STM32 for HAL/STM32 (#22537)
This commit is contained in:
@ -288,7 +288,7 @@
|
||||
|
||||
// Remove compiler warning on an unused variable
|
||||
#ifndef UNUSED
|
||||
#if defined(ARDUINO_ARCH_STM32) && !defined(STM32GENERIC) && !defined(MAPLE_STM32F1)
|
||||
#ifdef HAL_STM32
|
||||
#define UNUSED(X) (void)X
|
||||
#else
|
||||
#define UNUSED(x) ((void)(x))
|
||||
|
@ -19,7 +19,9 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#if defined(ARDUINO_ARCH_STM32) && !defined(STM32GENERIC) && !defined(MAPLE_STM32F1)
|
||||
#include "../../../HAL/platforms.h"
|
||||
|
||||
#ifdef HAL_STM32
|
||||
|
||||
#include "../../../inc/MarlinConfigPre.h"
|
||||
|
||||
@ -349,4 +351,4 @@ int WifiSerial::write(uint8_t c) {
|
||||
}
|
||||
|
||||
#endif // HAS_TFT_LVGL_UI && MKS_WIFI_MODULE
|
||||
#endif // !__STM32F1__
|
||||
#endif // HAL_STM32
|
||||
|
Reference in New Issue
Block a user