From 468cf2e1764d39726a7efe69ba091133981403bc Mon Sep 17 00:00:00 2001 From: classicrocker883 Date: Sat, 6 Apr 2024 06:46:03 -0400 Subject: [PATCH] Update - HC32 not compiling - revert changes --- Marlin/src/HAL/HC32/app_config.h | 12 ++++++------ Marlin/src/HAL/HC32/inc/SanityCheck.h | 5 +++++ ini/hc32.ini | 25 ++++++++++++++++--------- 3 files changed, 27 insertions(+), 15 deletions(-) diff --git a/Marlin/src/HAL/HC32/app_config.h b/Marlin/src/HAL/HC32/app_config.h index 2619535360..cb99b7f9bc 100644 --- a/Marlin/src/HAL/HC32/app_config.h +++ b/Marlin/src/HAL/HC32/app_config.h @@ -3,11 +3,11 @@ * it is used to configure the arduino core (and ddl) automatically according * to the settings in Configuration.h and Configuration_adv.h. */ -#pragma once -#ifndef _HC32_APP_CONFIG_H_ -#define _HC32_APP_CONFIG_H_ - -#include "../../inc/MarlinConfigPre.h" +// #pragma once +// #ifndef _HC32_APP_CONFIG_H_ +// #define _HC32_APP_CONFIG_H_ +// +// #include "../../inc/MarlinConfigPre.h" // // dev mode @@ -67,4 +67,4 @@ // FIXME override F_CPU to PCLK1, as marlin freaks out otherwise #define F_CPU (SYSTEM_CLOCK_FREQUENCIES.pclk1) -#endif // _HC32_APP_CONFIG_H_ \ No newline at end of file +// #endif // _HC32_APP_CONFIG_H_ \ No newline at end of file diff --git a/Marlin/src/HAL/HC32/inc/SanityCheck.h b/Marlin/src/HAL/HC32/inc/SanityCheck.h index af0a91ad8b..6b12e4d047 100644 --- a/Marlin/src/HAL/HC32/inc/SanityCheck.h +++ b/Marlin/src/HAL/HC32/inc/SanityCheck.h @@ -94,6 +94,11 @@ #error "SERIAL_DMA requires USART_RX_DMA_SUPPORT to be enabled in the arduino core." #endif + // USART_RX_DMA_SUPPORT does not implement core_hook_usart_rx_irq, which is required for the emergency parser + #if ENABLED(EMERGENCY_PARSER) + #error "EMERGENCY_PARSER is not supported with SERIAL_DMA. Please disable either SERIAL_DMA or EMERGENCY_PARSER." + #endif + #if ARDUINO_CORE_VERSION_INT < GET_VERSION_INT(1, 1, 0) #error "SERIAL_DMA is not supported with arduino core version < 1.1.0." #endif diff --git a/ini/hc32.ini b/ini/hc32.ini index 531ae8105d..f7cf075375 100644 --- a/ini/hc32.ini +++ b/ini/hc32.ini @@ -33,16 +33,23 @@ build_src_filter = ${common.default_src_filter} + +