Skip to content

Commit fde9c9c

Browse files
committed
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 e465b3e commit fde9c9c

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

drivers/rx/README

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,9 @@ License:
3232

3333
License Link:
3434
https://opensource.org/licenses/BSD-3-Clause
35+
36+
Patch List:
37+
38+
* Remove the static definition in RIIC
39+
Impacted files:
40+
drivers/rx/rdp/src/r_riic_rx/src/r_riic_rx.c

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)