Skip to content

Commit 2669eb5

Browse files
quytranpzzKhiemNguyenT
authored andcommitted
hal: renesas: rx: Fix the build warning inside lvd driver
Fix the build warning related to variable declaration Signed-off-by: Quy Tran <[email protected]>
1 parent 64b4a27 commit 2669eb5

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

drivers/rx/README

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,7 @@ Patch List:
7777
Impacted files:
7878
drivers/rx/rdp/src/r_lvd_rx/src/r_lvd_rx_hw.c
7979
drivers/rx/rdp/src/r_lvd_rx/r_lvd_rx_if.h
80+
81+
* Fix the build warnings in LVD driver
82+
Impacted files:
83+
drivers/rx/rdp/src/r_lvd_rx/src/r_lvd_rx_hw.c

drivers/rx/rdp/src/r_lvd_rx/src/r_lvd_rx_hw.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1298,21 +1298,19 @@ void lvd_hw_enable_nmi(lvd_channel_t ch, bool b_enable_flag)
12981298
***********************************************************************************************************************/
12991299
void lvd_hw_dummy_read_dfilter(lvd_channel_t ch)
13001300
{
1301-
uint8_t volatile dummy_read;
1302-
13031301
if (LVD_CHANNEL_1 == ch)
13041302
{
13051303
#if (LVD_ENABLE == LVD_SUPPORT_DFILTER_CH1)
13061304
/* Read dummy */
1307-
dummy_read = SYSTEM.LVD1CR0.BIT.LVD1DFDIS;
1305+
uint8_t volatile dummy_read = SYSTEM.LVD1CR0.BIT.LVD1DFDIS;
13081306
#endif
13091307
}
13101308
#ifndef BSP_MCU_RX23W
13111309
else
13121310
{
13131311
#if (LVD_ENABLE == LVD_SUPPORT_DFILTER_CH2)
13141312
/* Read dummy */
1315-
dummy_read = SYSTEM.LVD2CR0.BIT.LVD2DFDIS;
1313+
uint8_t volatile dummy_read = SYSTEM.LVD2CR0.BIT.LVD2DFDIS;
13161314
#endif
13171315
}
13181316
#endif

0 commit comments

Comments
 (0)