diff options
| author | Martino Facchin <[email protected]> | 2023-06-05 09:31:58 +0200 |
|---|---|---|
| committer | Martino Facchin <[email protected]> | 2023-06-05 09:48:06 +0200 |
| commit | 2b735ee8f5476168d6b5ed1dc32edc52f4d3648a (patch) | |
| tree | 1695018f48d97cea3d7a96fce7460c1f04ff4c72 | |
| parent | cdbd3a0b4ee6c97f2c3cd568b3ff453639ed81cd (diff) | |
renesas_ra: fix wrong ifdef
Since CFG_TUSB_RHPORT1_MODE is always defined now for backwards compatibility
| -rw-r--r-- | src/portable/renesas/rusb2/rusb2_ra.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/portable/renesas/rusb2/rusb2_ra.c b/src/portable/renesas/rusb2/rusb2_ra.c index 2b6ce7b2f..ff2191b1f 100644 --- a/src/portable/renesas/rusb2/rusb2_ra.c +++ b/src/portable/renesas/rusb2/rusb2_ra.c @@ -1,16 +1,16 @@ #include "tusb_option.h" #include "rusb2_ra.h" -#ifdef CFG_TUSB_RHPORT0_MODE +#if (CFG_TUSB_RHPORT0_MODE != 0) IRQn_Type _usb_fs_irqn = USBFS_INT_IRQn; void tud_set_irq_usbfs(IRQn_Type q) { _usb_fs_irqn = q; } #endif -#ifdef CFG_TUSB_RHPORT1_MODE +#if (CFG_TUSB_RHPORT1_MODE != 0) IRQn_Type _usb_hs_irqn = USBHS_USB_INT_RESUME_IRQn; void tud_set_irq_usbhs(IRQn_Type q) { _usb_hs_irqn = q; } -#endif
\ No newline at end of file +#endif |
