Skip to content

Commit 6fe07c6

Browse files
committed
Ticker NCS36510: Fix tests of the status register.
1 parent f52da48 commit 6fe07c6

File tree

1 file changed

+5
-5
lines changed
  • targets/TARGET_ONSEMI/TARGET_NCS36510

1 file changed

+5
-5
lines changed

targets/TARGET_ONSEMI/TARGET_NCS36510/rtc.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
* $Rev: 3525 $
88
* $Date: 2015-07-20 15:24:25 +0530 (Mon, 20 Jul 2015) $
99
******************************************************************************
10-
* Copyright 2016 Semiconductor Components Industries LLC (d/b/a ON Semiconductor).
10+
* Copyright 2016 Semiconductor Components Industries LLC (d/b/a ON Semiconductor).
1111
* All rights reserved. This software and/or documentation is licensed by ON Semiconductor
1212
* under limited terms and conditions. The terms and conditions pertaining to the software
1313
* and/or documentation are available at http://www.onsemi.com/site/pdf/ONSEMI_T&C.pdf
14-
* (ON Semiconductor Standard Terms and Conditions of Sale, Section 8 Software) and
14+
* (ON Semiconductor Standard Terms and Conditions of Sale, Section 8 Software) and
1515
* if applicable the software license agreement. Do not use this software and/or
1616
* documentation unless you have carefully read and you agree to the limited terms and
1717
* conditions. By using this software and/or documentation, you agree to the limited
@@ -148,7 +148,7 @@ void fRtcSetInterrupt(uint32_t timestamp)
148148
/* Wait for RTC to finish writing register - RTC operates on 32K clock as compared to 32M core*/
149149
while((RTCREG->STATUS.WORD & ((True << RTC_STATUS_SUB_SEC_ALARM_WRT_BIT_POS) |
150150
(True << RTC_STATUS_SEC_ALARM_WRT_BIT_POS) |
151-
(True << RTC_STATUS_CONTROL_WRT_BIT_POS))) == True);
151+
(True << RTC_STATUS_CONTROL_WRT_BIT_POS))));
152152
}
153153
return;
154154
}
@@ -176,7 +176,7 @@ void fRtcClearInterrupt(void)
176176
(True << RTC_INT_CLR_SEC_BIT_POS));
177177

178178
while((RTCREG->STATUS.WORD & ((True << RTC_STATUS_SUB_SEC_INT_CLR_WRT_BIT_POS) |
179-
(True << RTC_STATUS_SEC_INT_CLR_WRT_BIT_POS))) == True); /* Wait for RTC to finish writing register - RTC operates on 32K clock as compared to 32M core*/
179+
(True << RTC_STATUS_SEC_INT_CLR_WRT_BIT_POS)))); /* Wait for RTC to finish writing register - RTC operates on 32K clock as compared to 32M core*/
180180
}
181181

182182
/* See rtc.h for details */
@@ -280,7 +280,7 @@ void fRtcHandler(void)
280280
while((RTCREG->STATUS.WORD & ((True << RTC_STATUS_SUB_SEC_ALARM_WRT_BIT_POS) |
281281
(True << RTC_STATUS_CONTROL_WRT_BIT_POS) |
282282
(True << RTC_STATUS_SUB_SEC_INT_CLR_WRT_BIT_POS) |
283-
(True << RTC_STATUS_SEC_INT_CLR_WRT_BIT_POS))) == True);
283+
(True << RTC_STATUS_SEC_INT_CLR_WRT_BIT_POS))));
284284

285285
lp_ticker_irq_handler();
286286
}

0 commit comments

Comments
 (0)