From 5e00e8e1103cad53dbbada8b0c8698f0c4c667ac Mon Sep 17 00:00:00 2001 From: Boyd Date: Mon, 20 May 2024 09:29:10 -0700 Subject: [PATCH] Remove unneeded define This removes the comment and subsequent define for RTC_ALARM_IRQn, which is no longer needed, and the core itself has adopted the RTC_Alarm_Handler, rather than the stated 'ALARM'. The various versions of GD32F30X_(HD/XD/CL) appear to all be consistent in their RTC IRQ defines at this time. --- cores/arduino/gd32/rtc.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/cores/arduino/gd32/rtc.c b/cores/arduino/gd32/rtc.c index 9dd0f6fa..02a49f31 100644 --- a/cores/arduino/gd32/rtc.c +++ b/cores/arduino/gd32/rtc.c @@ -28,16 +28,6 @@ OF SUCH DAMAGE. #include "rtc.h" #include -/* - In the definitions for GD32F30X_{H,X}D, this is 'Alarm', but for the - CL variant, it’s 'ALARM'. The core uses the upper case version. I - have no good solution other than getting the official firmware - library changed. -bjc (2021-Aug-20) -*/ -#if defined(GD32F30X_CL) || defined(GD32F30X_HD) || defined (GD32F30X_XD) || defined(GD32E50X) -#define RTC_ALARM_IRQn RTC_Alarm_IRQn -#endif - /* If this macro is defined, then on a microcontroller restart, the old contents of the backup domain will be reset. This will cause the time in the RTC to be reset on every restart.