Skip to content

Commit

Permalink
Remove unneeded define
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bmourit authored May 20, 2024
1 parent 858a0d5 commit 5e00e8e
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions cores/arduino/gd32/rtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,6 @@ OF SUCH DAMAGE.
#include "rtc.h"
#include <time.h>

/*
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.
Expand Down

0 comments on commit 5e00e8e

Please sign in to comment.