Skip to content

Commit 2432faa

Browse files
committed
Update RTC.cpp
1 parent f3f7ac7 commit 2432faa

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

libraries/RTC/src/RTC.cpp

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ void APM3_RTC::setAlarm(uint8_t hund, uint8_t sec, uint8_t min, uint8_t hour, ui
179179
5: AM_HAL_RTC_ALM_RPT_HR Interrupt every hour
180180
6: AM_HAL_RTC_ALM_RPT_MIN Interrupt every minute
181181
7: AM_HAL_RTC_ALM_RPT_SEC Interrupt every second
182-
8: AM_HAL_RTC_ALM_RPT_10TH Interrupt every 10th second
183-
9: AM_HAL_RTC_ALM_RPT_100TH Interrupt every 100th second
182+
8: AM_HAL_RTC_ALM_RPT_10TH Interrupt every 10th second (unused)
183+
9: AM_HAL_RTC_ALM_RPT_100TH Interrupt every 100th second (unused)
184184
*/
185185
void APM3_RTC::setAlarmMode(uint8_t mode)
186186
{
@@ -197,17 +197,10 @@ void APM3_RTC::attachInterrupt()
197197

198198
// Enable RTC interrupts to the NVIC.
199199
NVIC_EnableIRQ(RTC_IRQn);
200-
201-
// Enable interrupt signals from the NVIC to trigger ISR entry in the CPU. (Redundant?)
202-
//am_hal_interrupt_master_enable();
203-
204200
}
205201

206202
void APM3_RTC::detachInterrupt()
207203
{
208-
// Disable interrupt signals from the NVIC to trigger ISR entry in the CPU. (Redundant?)
209-
// am_hal_interrupt_master_disable();
210-
211204
// Disable RTC interrupts to the NVIC.
212205
NVIC_DisableIRQ(RTC_IRQn);
213206

0 commit comments

Comments
 (0)