Skip to content

Commit 3854ea3

Browse files
committed
hal: renesas: rx: Fixes the build warning on I2C driver
Remove unuse variable on r_riic_rx source to avoid the warning and include r_bsp_locking.h in the r_riic_rx130.c Signed-off-by: Quy Tran <[email protected]>
1 parent fde9c9c commit 3854ea3

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

drivers/rx/rdp/src/r_riic_rx/src/r_riic_rx.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1985,7 +1985,6 @@ static riic_return_t riic_after_gen_start_cond(riic_info_t * p_riic_info)
19851985

19861986
/* Creates the register pointer for the specified RIIC channel. */
19871987
volatile uint8_t * const piccr1_reg = RIIC_ICCR1_ADR(p_riic_info->ch_no);
1988-
volatile uint8_t * const picsr2_reg = RIIC_ICSR2_ADR(p_riic_info->ch_no);
19891988

19901989
/* IIC mode? */
19911990
switch (riic_api_info[p_riic_info->ch_no].N_Mode)
@@ -3719,7 +3718,6 @@ static void riic_all_reset(riic_info_t * p_riic_info)
37193718
static void riic_clear_ir_flag(riic_info_t * p_riic_info)
37203719
{
37213720
uint8_t internal_flag = 0x00; /* Determines whether reinitialization is necessary. */
3722-
volatile uint8_t uctmp = 0x00;
37233721

37243722
/* Creates the register pointer for the specified RIIC channel. */
37253723
volatile uint8_t * const piccr1_reg = RIIC_ICCR1_ADR(p_riic_info->ch_no);

drivers/rx/rdp/src/r_riic_rx/src/targets/rx130/r_riic_rx130.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
#if defined(BSP_MCU_RX130)
3232

3333
#include "r_riic_rx_private.h"
34+
#include "r_bsp_locking.h"
3435

3536
/***********************************************************************************************************************
3637
Exported global variables (to be accessed by other files)

0 commit comments

Comments
 (0)