From 0a2c7f7ac5bfff03a9d63dbbbf15205cb3f0a5bf Mon Sep 17 00:00:00 2001 From: Bhindhiya Date: Tue, 8 Sep 2020 10:40:13 +0530 Subject: [PATCH] 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 c36018cac2..ad3f1d1b6d 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