You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/09/08 06:55:00 UTC
[incubator-nuttx] branch master updated: RX65N RTC Pre-check
Warnings Resolved
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 0a2c7f7 RX65N RTC Pre-check Warnings Resolved
0a2c7f7 is described below
commit 0a2c7f7ac5bfff03a9d63dbbbf15205cb3f0a5bf
Author: Bhindhiya <bi...@gmail.com>
AuthorDate: Tue Sep 8 10:40:13 2020 +0530
RX65N RTC Pre-check Warnings Resolved
---
arch/renesas/src/rx65n/rx65n_rtc.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/renesas/src/rx65n/rx65n_rtc.c b/arch/renesas/src/rx65n/rx65n_rtc.c
index c36018c..ad3f1d1 100644
--- a/arch/renesas/src/rx65n/rx65n_rtc.c
+++ b/arch/renesas/src/rx65n/rx65n_rtc.c
@@ -69,7 +69,9 @@ void up_enable_irq(int irq);
void up_disable_irq(int irq);
void rtc_prd_interrupt(void);
static uint32_t rtc_dec2bcd(uint8_t value);
+#if defined (CONFIG_RTC_HIRES) || defined (CONFIG_RTC_ALARM) || defined (CONFIG_RTC_DATETIME)
static int rtc_bcd2dec(uint32_t value);
+#endif
/****************************************************************************
* Private Data
@@ -236,10 +238,12 @@ static uint32_t rtc_dec2bcd(uint8_t value)
*
****************************************************************************/
+#if defined (CONFIG_RTC_HIRES) || defined (CONFIG_RTC_ALARM) || defined (CONFIG_RTC_DATETIME)
static int rtc_bcd2dec(uint32_t value)
{
return (int) ((((value & 0xf0) >> 4) * 10) + (value & 0x0f));
}
+#endif
/****************************************************************************
* Name: rtc_interrupt