Skip to content

Commit d21375b

Browse files
committed
[bsp][renesas] comment drv_flash.c and format drv_i2c.c
1 parent 7d0c89c commit d21375b

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

bsp/renesas/libraries/HAL_Drivers/drivers/drv_flash.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,11 @@ static int fal_flash_lp_erase(long offset, size_t size)
341341
return _flash_lp_erase(_onchip_flash_lp.addr + offset, size);
342342
}
343343

344+
/*
345+
* This callback is intentionally left empty.
346+
* No action is required on flash events in this application.
347+
* If event handling is needed, implement it here.
348+
*/
344349
void flash_callback(flash_callback_args_t * p_args)
345350
{
346351

bsp/renesas/libraries/HAL_Drivers/drivers/drv_i2c.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
#include <hal_data.h>
2424

2525
#ifndef BIT
26-
#define BIT(idx) (1ul << (idx))
26+
#define BIT(idx) (1ul << (idx))
2727
#endif
2828

2929
#ifndef BITS
30-
#define BITS(b,e) ((((uint32_t)-1)<<(b))&(((uint32_t)-1)>>(31-(e))))
30+
#define BITS(b,e) ((((uint32_t)-1)<<(b))&(((uint32_t)-1)>>(31-(e))))
3131
#endif
3232

3333
#define RA_SCI_EVENT_ABORTED BIT(0)
@@ -37,9 +37,9 @@
3737
#define RA_SCI_EVENT_ALL BITS(0,3)
3838

3939
#ifdef SOC_SERIES_R7FA2E2
40-
#define R_IIC_MASTER_Open R_IIC_B_MASTER_Open
41-
#define R_IIC_MASTER_Write R_IIC_B_MASTER_Write
42-
#define R_IIC_MASTER_Read R_IIC_B_MASTER_Read
40+
#define R_IIC_MASTER_Open R_IIC_B_MASTER_Open
41+
#define R_IIC_MASTER_Write R_IIC_B_MASTER_Write
42+
#define R_IIC_MASTER_Read R_IIC_B_MASTER_Read
4343
#define R_IIC_MASTER_SlaveAddressSet R_IIC_B_MASTER_SlaveAddressSet
4444
#define R_IIC_MASTER_CallbackSet R_IIC_B_MASTER_CallbackSet
4545
#endif

0 commit comments

Comments
 (0)