Skip to content

Commit b5e59be

Browse files
committed
hal: renesas: rx: Fix implicit conversion build warnings in RX26T src
Fix the implicit conversion from float to double warnings in RX26T source files Signed-off-by: Quy Tran <[email protected]>
1 parent fda2216 commit b5e59be

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

drivers/rx/README

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,8 @@ Patch List:
8181
* Fix the build warnings in LVD driver
8282
Impacted files:
8383
drivers/rx/rdp/src/r_lvd_rx/src/r_lvd_rx_hw.c
84+
85+
* Fix implicit conversion build warnings
86+
Impacted files:
87+
drivers/rx/rdp/src/r_bsp/mcu/rx26t/mcu_clocks.c
88+
drivers/rx/rdp/src/r_sci_rx/src/targets/rx26t/r_sci_rx26t.c

drivers/rx/rdp/src/r_bsp/mcu/rx26t/mcu_clocks.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ static void clock_source_select (void)
529529
#endif
530530

531531
/* Set PLL Multiplier. */
532-
SYSTEM.PLLCR.BIT.STC = ((uint8_t)((float)BSP_CFG_PLL_MUL * 2.0)) - 1;
532+
SYSTEM.PLLCR.BIT.STC = ((uint8_t)((float)BSP_CFG_PLL_MUL * 2.0f)) - 1;
533533

534534
/* Set the PLL to operating. */
535535
SYSTEM.PLLCR2.BYTE = 0x00;

drivers/rx/rdp/src/r_sci_rx/src/targets/rx26t/r_sci_rx26t.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ int32_t sci_init_bit_rate(sci_hdl_t const hdl,
296296
error = (((float)pclk / ((baud * divisor) * tmp)) - 1) * 100;
297297
abs_error = (error < 0) ? (-error) : error;
298298

299-
if ((abs_error <= 1.0) || (SCI_MODE_ASYNC != hdl->mode))
299+
if ((abs_error <= 1.0f) || (SCI_MODE_ASYNC != hdl->mode))
300300
{
301301
hdl->rom->regs->SEMR.BIT.BRME = 0; // disable MDDR
302302

0 commit comments

Comments
 (0)