drivers: intc: renesas_ra: Handle interrupts based on event numbers #143493
Annotations
1 error, 1 warning, and 4 notices
|
ClangFormat.txt#L1
See https://docs.zephyrproject.org/latest/contribute/guidelines.html#clang-format for more details.
You may want to run clang-format on this change:
- IF_ENABLED(DT_NODE_HAS_PROP(n, UTIL_CAT(DT_STRING_TOKEN_BY_IDX(n, p, i), _pins)), ( \
- const uint8_t _CONCAT(n, ___pins##i[]) = {DT_FOREACH_PROP_ELEM_SEP( \
- n, _CONCAT(DT_STRING_TOKEN_BY_IDX(n, p, i), _pins), DT_PROP_BY_IDX, (,))}; \
- ))
+ IF_ENABLED(DT_NODE_HAS_PROP(n, UTIL_CAT(DT_STRING_TOKEN_BY_IDX(n, p, i), _pins)), \
+ (const uint8_t _CONCAT(n, ___pins##i[]) = {DT_FOREACH_PROP_ELEM_SEP( \
+ n, _CONCAT(DT_STRING_TOKEN_BY_IDX(n, p, i), _pins), DT_PROP_BY_IDX, \
+ (, ))};))
#define GPIO_RA_IRQ_INFO(n, p, i) \
- IF_ENABLED(DT_NODE_HAS_PROP(n, UTIL_CAT(DT_STRING_TOKEN_BY_IDX(n, p, i), _pins)), ( \
- { \
- .port_irq = _CONCAT(RA_NUM_, DT_STRING_UPPER_TOKEN_BY_IDX(n, p, i)), \
- .event = DT_IRQ_BY_IDX(n, i, event), \
- .priority = DT_IRQ_BY_IDX(n, i, priority), \
- .pins = _CONCAT(n, ___pins##i), \
- .num = ARRAY_SIZE(_CONCAT(n, ___pins##i)), \
- },))
+ IF_ENABLED(DT_NODE_HAS_PROP(n, UTIL_CAT(DT_STRING_TOKEN_BY_IDX(n, p, i), _pins)), \
+ ({ \
+ .port_irq = _CONCAT(RA_NUM_, DT_STRING_UPPER_TOKEN_BY_IDX(n, p, i)), \
+ .event = DT_IRQ_BY_IDX(n, i, event), \
+ .priority = DT_IRQ_BY_IDX(n, i, priority), \
+ .pins = _CONCAT(n, ___pins##i), \
+ .num = ARRAY_SIZE(_CONCAT(n, ___pins##i)), \
+ }, ))
#define GPIO_RA_ISR_DECL(n, p, i) \
- IF_ENABLED(DT_NODE_HAS_PROP(n, UTIL_CAT(DT_STRING_TOKEN_BY_IDX(n, p, i), _pins)), ( \
- static void _CONCAT(n, _CONCAT(gpio_ra_isr_, DT_STRING_TOKEN_BY_IDX(n, p, i)))( \
- const void *arg) \
- { \
- gpio_ra_isr((const struct device *)arg, \
- _CONCAT(RA_NUM_, DT_STRING_UPPER_TOKEN_BY_IDX(n, p, i))); \
- }))
+ IF_ENABLED( \
+ DT_NODE_HAS_PROP(n, UTIL_CAT(DT_STRING_TOKEN_BY_IDX(n, p, i), _pins)), \
+ (static void _CONCAT(n, _CONCAT(gpio_ra_isr_, DT_STRING_TOKEN_BY_IDX(n, p, i)))( \
+ const void *arg) { \
+ gpio_ra_isr((const struct device *)arg, \
+ _CONCAT(RA_NUM_, DT_STRING_UPPER_TOKEN_BY_IDX(n, p, i))); \
+ }))
File:drivers/gpio/gpio_renesas_ra.c
Line:388
You may want to run clang-format on this change:
- .common = { \
- .port_pin_mask = GPIO_PORT_PIN_MASK_FROM_DT_INST(idx), \
- }, \
+ .common = \
+ { \
+ .port_pin_mask = GPIO_PORT_PIN_MASK_FROM_DT_INST(idx), \
+ }, \
File:drivers/gpio/gpio_renesas_ra.c
Line:406
You may want to run clang-format on this change:
- IF_ENABLED(CONFIG_UART_INTERRUPT_DRIVEN, ( \
- .eve
|
drivers/gpio/gpio_renesas_ra.c#L388
drivers/gpio/gpio_renesas_ra.c:388
- IF_ENABLED(DT_NODE_HAS_PROP(n, UTIL_CAT(DT_STRING_TOKEN_BY_IDX(n, p, i), _pins)), ( \
- const uint8_t _CONCAT(n, ___pins##i[]) = {DT_FOREACH_PROP_ELEM_SEP( \
- n, _CONCAT(DT_STRING_TOKEN_BY_IDX(n, p, i), _pins), DT_PROP_BY_IDX, (,))}; \
- ))
+ IF_ENABLED(DT_NODE_HAS_PROP(n, UTIL_CAT(DT_STRING_TOKEN_BY_IDX(n, p, i), _pins)), \
+ (const uint8_t _CONCAT(n, ___pins##i[]) = {DT_FOREACH_PROP_ELEM_SEP( \
+ n, _CONCAT(DT_STRING_TOKEN_BY_IDX(n, p, i), _pins), DT_PROP_BY_IDX, \
+ (, ))};))
#define GPIO_RA_IRQ_INFO(n, p, i) \
- IF_ENABLED(DT_NODE_HAS_PROP(n, UTIL_CAT(DT_STRING_TOKEN_BY_IDX(n, p, i), _pins)), ( \
- { \
- .port_irq = _CONCAT(RA_NUM_, DT_STRING_UPPER_TOKEN_BY_IDX(n, p, i)), \
- .event = DT_IRQ_BY_IDX(n, i, event), \
- .priority = DT_IRQ_BY_IDX(n, i, priority), \
- .pins = _CONCAT(n, ___pins##i), \
- .num = ARRAY_SIZE(_CONCAT(n, ___pins##i)), \
- },))
+ IF_ENABLED(DT_NODE_HAS_PROP(n, UTIL_CAT(DT_STRING_TOKEN_BY_IDX(n, p, i), _pins)), \
+ ({ \
+ .port_irq = _CONCAT(RA_NUM_, DT_STRING_UPPER_TOKEN_BY_IDX(n, p, i)), \
+ .event = DT_IRQ_BY_IDX(n, i, event), \
+ .priority = DT_IRQ_BY_IDX(n, i, priority), \
+ .pins = _CONCAT(n, ___pins##i), \
+ .num = ARRAY_SIZE(_CONCAT(n, ___pins##i)), \
+ }, ))
#define GPIO_RA_ISR_DECL(n, p, i) \
- IF_ENABLED(DT_NODE_HAS_PROP(n, UTIL_CAT(DT_STRING_TOKEN_BY_IDX(n, p, i), _pins)), ( \
- static void _CONCAT(n, _CONCAT(gpio_ra_isr_, DT_STRING_TOKEN_BY_IDX(n, p, i)))( \
- const void *arg) \
- { \
- gpio_ra_isr((const struct device *)arg, \
- _CONCAT(RA_NUM_, DT_STRING_UPPER_TOKEN_BY_IDX(n, p, i))); \
- }))
+ IF_ENABLED( \
+ DT_NODE_HAS_PROP(n, UTIL_CAT(DT_STRING_TOKEN_BY_IDX(n, p, i), _pins)), \
+ (static void _CONCAT(n, _CONCAT(gpio_ra_isr_, DT_STRING_TOKEN_BY_IDX(n, p, i)))( \
+ const void *arg) { \
+ gpio_ra_isr((const struct device *)arg, \
+ _CONCAT(RA_NUM_, DT_STRING_UPPER_TOKEN_BY_IDX(n, p, i))); \
+ }))
|
drivers/gpio/gpio_renesas_ra.c#L406
drivers/gpio/gpio_renesas_ra.c:406
- .common = { \
- .port_pin_mask = GPIO_PORT_PIN_MASK_FROM_DT_INST(idx), \
- }, \
+ .common = \
+ { \
+ .port_pin_mask = GPIO_PORT_PIN_MASK_FROM_DT_INST(idx), \
+ }, \
|
drivers/serial/uart_renesas_ra.c#L680
drivers/serial/uart_renesas_ra.c:680
- IF_ENABLED(CONFIG_UART_INTERRUPT_DRIVEN, ( \
- .event = { \
- DT_IRQ_BY_NAME(DT_INST_PARENT(n), rxi, event), \
- DT_IRQ_BY_NAME(DT_INST_PARENT(n), txi, event), \
- DT_IRQ_BY_NAME(DT_INST_PARENT(n), eri, event), \
- }, \
- .irq_config_func = irq_config_func_##n, \
- )) \
- }
+ IF_ENABLED(CONFIG_UART_INTERRUPT_DRIVEN, \
+ (.event = \
+ { \
+ DT_IRQ_BY_NAME(DT_INST_PARENT(n), rxi, event), \
+ DT_IRQ_BY_NAME(DT_INST_PARENT(n), txi, event), \
+ DT_IRQ_BY_NAME(DT_INST_PARENT(n), eri, event), \
+ }, \
+ .irq_config_func = irq_config_func_##n, ))}
#ifdef CONFIG_UART_INTERRUPT_DRIVEN
-
|
include/zephyr/dt-bindings/interrupt-controller/renesas/ra/ra4m1_events.h#L190
include/zephyr/dt-bindings/interrupt-controller/renesas/ra/ra4m1_events.h:190
-#define RA_EVENT_NONE (0x0)
-#define RA_EVENT_ICU_IRQ0 (0x001)
-#define RA_EVENT_ICU_IRQ1 (0x002)
-#define RA_EVENT_ICU_IRQ2 (0x003)
-#define RA_EVENT_ICU_IRQ3 (0x004)
-#define RA_EVENT_ICU_IRQ4 (0x005)
-#define RA_EVENT_ICU_IRQ5 (0x006)
-#define RA_EVENT_ICU_IRQ6 (0x007)
-#define RA_EVENT_ICU_IRQ7 (0x008)
-#define RA_EVENT_ICU_IRQ8 (0x009)
-#define RA_EVENT_ICU_IRQ9 (0x00A)
-#define RA_EVENT_ICU_IRQ10 (0x00B)
-#define RA_EVENT_ICU_IRQ11 (0x00C)
-#define RA_EVENT_ICU_IRQ12 (0x00D)
-#define RA_EVENT_ICU_IRQ14 (0x00F)
-#define RA_EVENT_ICU_IRQ15 (0x010)
-#define RA_EVENT_DMAC0_INT (0x011)
-#define RA_EVENT_DMAC1_INT (0x012)
-#define RA_EVENT_DMAC2_INT (0x013)
-#define RA_EVENT_DMAC3_INT (0x014)
-#define RA_EVENT_DTC_COMPLETE (0x015)
-#define RA_EVENT_DTC_END (0x016)
-#define RA_EVENT_ICU_SNOOZE_CANCEL (0x017)
-#define RA_EVENT_FCU_FRDYI (0x018)
-#define RA_EVENT_LVD_LVD1 (0x019)
-#define RA_EVENT_LVD_LVD2 (0x01A)
-#define RA_EVENT_LVD_VBATT (0x01B)
-#define RA_EVENT_CGC_MOSC_STOP (0x01C)
-#define RA_EVENT_LPM_SNOOZE_REQUEST (0x01D)
-#define RA_EVENT_AGT0_INT (0x01E)
-#define RA_EVENT_AGT0_COMPARE_A (0x01F)
-#define RA_EVENT_AGT0_COMPARE_B (0x020)
-#define RA_EVENT_AGT1_INT (0x021)
-#define RA_EVENT_AGT1_COMPARE_A (0x022)
-#define RA_EVENT_AGT1_COMPARE_B (0x023)
-#define RA_EVENT_IWDT_UNDERFLOW (0x024)
-#define RA_EVENT_WDT_UNDERFLOW (0x025)
-#define RA_EVENT_RTC_ALARM (0x026)
-#define RA_EVENT_RTC_PERIOD (0x027)
-#define RA_EVENT_RTC_CARRY (0x028)
-#define RA_EVENT_ADC0_SCAN_END (0x029)
-#define RA_EVENT_ADC0_SCAN_END_B (0x02A)
-#define RA_EVENT_ADC0_WINDOW_A (0x02B)
-#define RA_EVENT_ADC0_WINDOW_B (0x02C)
-#define RA_EVENT_ADC0_COMPARE_MATCH (0x02D)
-#define RA_EVENT_ADC0_COMPARE_MISMATCH (0x02E)
-#define RA_EVENT_ACMPLP0_INT (0x02F)
-#define RA_EVENT_ACMPLP1_INT (0x030)
-#define RA_EVENT_USBFS_FIFO_0 (0x031)
-#define RA_EVENT_USBFS_FIFO_1 (0x032)
-#define RA_EVENT_USBFS_INT (0x033)
-#define RA_EVENT_USBFS_RESUME (0x034)
-#define RA_EVENT_IIC0_RXI (0x035)
-#define RA_EVENT_IIC0_TXI (0x036)
-#define RA_EVENT_IIC0_TEI (0x037)
-#define RA_EVENT_IIC0_ERI (0x038)
-#define RA_EVENT_IIC0_WUI (0x039)
-#define RA_EVENT_IIC1_RXI (0x03A)
-#define RA_EVENT_IIC1_TXI (0x03B)
-#define RA_EVENT_IIC1_TEI (0x03C)
-#define RA_EVENT_IIC1_ERI (0x03D)
-#define RA_EVENT_SSI0_TXI (0x03E)
-#define RA_EVENT_SSI0_RXI (0x03F)
-#define RA_EVENT_SSI0_INT (0x041)
-#define RA_EVENT_CTSU_WRITE (0x042)
-#define RA_EVENT_CTSU_READ (0x043)
-#define RA_EVENT_CTSU_END (0x044)
-#define RA_EVENT_KEY_INT (0x045)
-#define RA_EVENT_DOC_INT (0x046)
-#define RA_EVENT_CAC_FREQUENCY_ERROR (0x047)
-#define RA_EVENT_CAC_MEASUR
|
This job succeeded
Loading