Skip to content

Commit 64b4a27

Browse files
quytranpzzKhiemNguyenT
authored andcommitted
hal: renesas: rx: Remove static definition for lvd isr function
Remove static define to reuse in Zephyr side Signed-off-by: Quy Tran <[email protected]>
1 parent 700dced commit 64b4a27

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

drivers/rx/README

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,8 @@ Patch List:
7272
* Fix the build warnings in IWDT driver
7373
Impacted files:
7474
drivers/rx/rdp/src/r_iwdt_rx/src/r_iwdt_rx.c
75+
76+
* Remove the static definition in LVD isr function
77+
Impacted files:
78+
drivers/rx/rdp/src/r_lvd_rx/src/r_lvd_rx_hw.c
79+
drivers/rx/rdp/src/r_lvd_rx/r_lvd_rx_if.h

drivers/rx/rdp/src/r_lvd_rx/r_lvd_rx_if.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ extern lvd_err_t R_LVD_GetStatus (lvd_channel_t channel,
113113
lvd_status_cross_t * p_status_cross);
114114
extern lvd_err_t R_LVD_ClearStatus (lvd_channel_t channel);
115115
extern uint32_t R_LVD_GetVersion (void);
116+
extern void lvd_ch1_isr(void);
117+
extern void lvd_ch2_isr(void);
116118

117119
/***********************************************************************************************************************
118120
Exported global variables and functions (to be accessed by other files)

drivers/rx/rdp/src/r_lvd_rx/src/r_lvd_rx_hw.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1508,12 +1508,11 @@ void lvd_hw_wait_delay(uint32_t usec)
15081508
(LVD_GROUP_INT_ICUG == LVD_GROUP_INT))
15091509
R_BSP_PRAGMA_STATIC_INTERRUPT (lvd_ch1_isr, VECT(LVD1, LVD1))
15101510
#elif (LVD_GROUP_INT_ICUb == LVD_GROUP_INT)
1511-
R_BSP_PRAGMA_STATIC_INTERRUPT (lvd_ch1_isr, VECT(LVD, LVD1))
15121511
#else
15131512
#error "Error! Invalid setting for LVD_GROUP_INT in targets file."
15141513
#endif
15151514

1516-
R_BSP_ATTRIB_STATIC_INTERRUPT void lvd_ch1_isr(void)
1515+
void lvd_ch1_isr(void)
15171516
{
15181517
#if LVD_CFG_EN_NESTED_INT == 1
15191518
/* Set bit PSW.I = 1 to allow nested interrupt */
@@ -1543,7 +1542,7 @@ R_BSP_ATTRIB_STATIC_INTERRUPT void lvd_ch1_isr(void)
15431542

15441543
/***********************************************************************************************************************
15451544
* Outline : Interrupt LVD2 handler.
1546-
* Function Name: lvd_ch2_isr
1545+
* Function Name: lvd_ch2_isrlvd_ch2_isr
15471546
* Description : This function handle the LVD2 interrupt.
15481547
* Arguments : none
15491548
* Return Value : none
@@ -1559,11 +1558,10 @@ R_BSP_ATTRIB_STATIC_INTERRUPT void lvd_ch1_isr(void)
15591558
(LVD_GROUP_INT_ICUG == LVD_GROUP_INT))
15601559
R_BSP_PRAGMA_STATIC_INTERRUPT (lvd_ch2_isr, VECT(LVD2, LVD2))
15611560
#elif (LVD_GROUP_INT_ICUb == LVD_GROUP_INT)
1562-
R_BSP_PRAGMA_STATIC_INTERRUPT (lvd_ch2_isr, VECT(LVD, LVD2))
15631561
#else
15641562
#error "Error! Invalid setting for LVD_GROUP_INT in targets file."
15651563
#endif
1566-
R_BSP_ATTRIB_STATIC_INTERRUPT void lvd_ch2_isr(void)
1564+
void lvd_ch2_isr(void)
15671565
{
15681566
#if LVD_CFG_EN_NESTED_INT == 1
15691567
/* Set bit PSW.I = 1 to allow nested interrupt */

0 commit comments

Comments
 (0)