Skip to content

Commit 060e064

Browse files
quytranpzzKhiemNguyenT
authored andcommitted
hal: renesas: rx: remove static definition in r_riic module
Remote static definition for riic_bps_calc function to reuse in the Zephyr side, avoid the duplicate definition Signed-off-by: Quy Tran <[email protected]>
1 parent 66610ce commit 060e064

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

drivers/rx/README

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,8 @@ Patch List:
5252
Impacted files:
5353
drivers/rx/rdp/src/r_rspi_rx/src/r_rspi_rx.c
5454
drivers/rx/rdp/src/r_rspi_rx/src/r_rspi_rx_private.h
55+
56+
* Remove the static definition in RIIC driver
57+
Impacted files:
58+
drivers/rx/rdp/src/r_riic_rx/src/r_riic_rx.c
59+
drivers/rx/rdp/src/r_riic_rx/r_riic_rx_if.h

drivers/rx/rdp/src/r_riic_rx/r_riic_rx_if.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ riic_return_t R_RIIC_Close (riic_info_t *);
268268
*****************************************************************************/
269269
uint32_t R_RIIC_GetVersion (void);
270270

271+
riic_return_t riic_bps_calc (riic_info_t *, uint16_t kbps);
271272
R_BSP_PRAGMA_PACKOPTION
272273
#endif /* RIIC_IF_H */
273274

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ static void riic_reset_set (riic_info_t *);
162162
static void riic_all_reset (riic_info_t *);
163163
static void riic_clear_ir_flag (riic_info_t *);
164164

165-
static riic_return_t riic_bps_calc (riic_info_t *, uint16_t kbps);
165+
riic_return_t riic_bps_calc (riic_info_t *, uint16_t kbps);
166166

167167
/* static double riic_check_freq(void); */
168168

@@ -3784,7 +3784,7 @@ static void riic_clear_ir_flag(riic_info_t * p_riic_info)
37843784
* Return Value : RIIC_SUCCESS ; Successful operation, communication state
37853785
* : RIIC_ERR_OTHER ; Other error
37863786
**********************************************************************************************************************/
3787-
static riic_return_t riic_bps_calc(riic_info_t * p_riic_info, uint16_t kbps)
3787+
riic_return_t riic_bps_calc(riic_info_t * p_riic_info, uint16_t kbps)
37883788
{
37893789
volatile uint8_t uctmp;
37903790

0 commit comments

Comments
 (0)