Skip to content

Commit 3204903

Browse files
khoa-nguyen-18KhiemNguyenT
authored andcommitted
hal: renesas: ra: Modify BSP_PRV_IELS_ENUM for build process
Modify BSP_PRV_IELS_ENUM to use CONCAT instead of ## Signed-off-by: Khoa Nguyen <[email protected]>
1 parent 1589073 commit 3204903

20 files changed

+23
-19
lines changed

drivers/ra/README

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,7 @@ Patch List:
108108
drivers/ra/fsp/inc/instances/r_usb_host.h
109109
drivers/ra/fsp/src/bsp/mcu/**/bsp_feature.h
110110
drivers/ra/fsp/src/r_usb_host/r_usb_host.c
111+
112+
* Modify BSP_PRV_IELS_ENUM to use CONCAT instead of "##"
113+
Impacted files:
114+
zephyr/ra/ra_cfg/fsp_cfg/bsp/**/bsp_mcu_family_cfg.h

zephyr/ra/ra_cfg/fsp_cfg/bsp/ra2a1/bsp_mcu_family_cfg.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
#endif
6464
/* Used to create IELS values for the interrupt initialization table
6565
* g_interrupt_event_link_select. */
66-
#define BSP_PRV_IELS_ENUM(vector) (ELC_##vector)
66+
#define BSP_PRV_IELS_ENUM(vector) CONCAT(ELC_, vector)
6767

6868
/*
6969
ID Code

zephyr/ra/ra_cfg/fsp_cfg/bsp/ra2l1/bsp_mcu_family_cfg.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
#endif
6464
/* Used to create IELS values for the interrupt initialization table g_interrupt_event_link_select.
6565
*/
66-
#define BSP_PRV_IELS_ENUM(vector) (ICU_ ## vector)
66+
#define BSP_PRV_IELS_ENUM(vector) CONCAT(ICU_, vector)
6767

6868
#define BSP_CFG_DCDC_ENABLE (0)
6969
#define BSP_CFG_DCDC_VOLTAGE_RANGE (BSP_POWER_MODE_DCDC_2V7_TO_3V6)

zephyr/ra/ra_cfg/fsp_cfg/bsp/ra4e1/bsp_mcu_family_cfg.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@
313313
#define BSP_CFG_ROM_REG_OFS1 (0xFFFFFEF8 | (1 << 2) | (3) | (0 << 8))
314314

315315
/* Used to create IELS values for the interrupt initialization table g_interrupt_event_link_select. */
316-
#define BSP_PRV_IELS_ENUM(vector) (ELC_ ## vector)
316+
#define BSP_PRV_IELS_ENUM(vector) CONCAT(ELC_, vector)
317317

318318
/* Dual Mode Select Register */
319319
#ifndef BSP_CFG_ROM_REG_DUALSEL

zephyr/ra/ra_cfg/fsp_cfg/bsp/ra4e2/bsp_mcu_family_cfg.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@
302302
/* Used to create IELS values for the interrupt initialization table
303303
* g_interrupt_event_link_select.
304304
*/
305-
#define BSP_PRV_IELS_ENUM(vector) (ELC_ ## vector)
305+
#define BSP_PRV_IELS_ENUM(vector) CONCAT(ELC_, vector)
306306

307307
/* Block Protection Register 0 */
308308
#ifndef BSP_CFG_ROM_REG_BPS0

zephyr/ra/ra_cfg/fsp_cfg/bsp/ra4l1/bsp_mcu_family_cfg.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ extern "C" {
306306
#define BSP_CFG_ROM_REG_OFS1 (0xFFFFFEF8 | (1 << 2) | (2) | (1 << 8))
307307

308308
/* Used to create IELS values for the interrupt initialization table g_interrupt_event_link_select. */
309-
#define BSP_PRV_IELS_ENUM(vector) (ELC_ ## vector)
309+
#define BSP_PRV_IELS_ENUM(vector) CONCAT(ELC_, vector)
310310

311311
/* Dual Mode Select Register */
312312
#ifndef BSP_CFG_ROM_REG_DUALSEL

zephyr/ra/ra_cfg/fsp_cfg/bsp/ra4m1/bsp_mcu_family_cfg.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
/* Used to create IELS values for the interrupt initialization
6262
* table g_interrupt_event_link_select.
6363
*/
64-
#define BSP_PRV_IELS_ENUM(vector) (ELC_ ## vector)
64+
#define BSP_PRV_IELS_ENUM(vector) CONCAT(ELC_, vector)
6565

6666
/*
6767
* ID Code

zephyr/ra/ra_cfg/fsp_cfg/bsp/ra4m2/bsp_mcu_family_cfg.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@
331331
/* Used to create IELS values for the interrupt initialization table
332332
* g_interrupt_event_link_select.
333333
*/
334-
#define BSP_PRV_IELS_ENUM(vector) (ELC_ ## vector)
334+
#define BSP_PRV_IELS_ENUM(vector) CONCAT(ELC_, vector)
335335

336336
/* Dual Mode Select Register */
337337
#ifndef BSP_CFG_ROM_REG_DUALSEL

zephyr/ra/ra_cfg/fsp_cfg/bsp/ra4m3/bsp_mcu_family_cfg.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@
332332
/* Used to create IELS values for the interrupt initialization
333333
* table g_interrupt_event_link_select.
334334
*/
335-
#define BSP_PRV_IELS_ENUM(vector) (ELC_ ## vector)
335+
#define BSP_PRV_IELS_ENUM(vector) CONCAT(ELC_, vector)
336336

337337
/* Dual Mode Select Register */
338338
#ifndef BSP_CFG_ROM_REG_DUALSEL

zephyr/ra/ra_cfg/fsp_cfg/bsp/ra4w1/bsp_mcu_family_cfg.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
/* Used to create IELS values for the interrupt initialization
6464
* table g_interrupt_event_link_select.
6565
*/
66-
#define BSP_PRV_IELS_ENUM(vector) (ELC_ ## vector)
66+
#define BSP_PRV_IELS_ENUM(vector) CONCAT(ELC_, vector)
6767

6868
/*
6969
* ID Code

0 commit comments

Comments
 (0)