Skip to content

Commit fbac993

Browse files
thenguyenyfKhiemNguyenT
authored andcommitted
hal: renesas : ra: add r_usb_device support on USBFS
Add support for USBFS on r_usb_device Signed-off-by: The Nguyen <[email protected]>
1 parent abca7ee commit fbac993

File tree

20 files changed

+1881
-372
lines changed

20 files changed

+1881
-372
lines changed

drivers/ra/README

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,14 @@ Patch List:
8686
Impacted files:
8787
drivers/ra/fsp/src/bsp/mcu/all/bsp_sdram.h
8888
drivers/ra/fsp/src/bsp/mcu/all/bsp_sdram.c
89+
90+
* Create new USB device support for Zephyr HAL (do not use current FSP USB stack)
91+
Impacted files:
92+
drivers/ra/fsp/inc/api/r_usb_device_api.h
93+
drivers/ra/fsp/inc/instances/r_usb_device.h
94+
drivers/ra/fsp/src/r_usb_device/r_usb_device_define.h
95+
drivers/ra/fsp/src/r_usb_device/r_usb_device.c
96+
97+
* Add new define for USB module in bsp_feature.h
98+
Impacted files:
99+
drivers/ra/fsp/src/bsp/mcu/**/bsp_feature.h

drivers/ra/fsp/src/bsp/mcu/ra2a1/bsp_feature.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,4 +440,7 @@
440440
#define BSP_FEATURE_ULPT_MAX_CHANNEL_NUM (0)
441441
#define BSP_FEATURE_ULPT_VALID_CHANNEL_MASK (0U)
442442

443+
#define BSP_FEATURE_USB_NUM_IP (1U)
444+
#define BSP_FEATURE_USB_HAS_USBHS (0U)
445+
443446
#endif

drivers/ra/fsp/src/bsp/mcu/ra2l1/bsp_feature.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,4 +438,7 @@
438438
#define BSP_FEATURE_ULPT_MAX_CHANNEL_NUM (0)
439439
#define BSP_FEATURE_ULPT_VALID_CHANNEL_MASK (0U)
440440

441+
#define BSP_FEATURE_USB_NUM_IP (0U)
442+
#define BSP_FEATURE_USB_HAS_USBHS (0U)
443+
441444
#endif

drivers/ra/fsp/src/bsp/mcu/ra4e2/bsp_feature.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,4 +440,7 @@
440440
#define BSP_FEATURE_ULPT_MAX_CHANNEL_NUM (0)
441441
#define BSP_FEATURE_ULPT_VALID_CHANNEL_MASK (0U)
442442

443+
#define BSP_FEATURE_USB_NUM_IP (1U)
444+
#define BSP_FEATURE_USB_HAS_USBHS (0U)
445+
443446
#endif

drivers/ra/fsp/src/bsp/mcu/ra4m1/bsp_feature.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,4 +440,7 @@
440440
#define BSP_FEATURE_ULPT_MAX_CHANNEL_NUM (0)
441441
#define BSP_FEATURE_ULPT_VALID_CHANNEL_MASK (0U)
442442

443+
#define BSP_FEATURE_USB_NUM_IP (1U)
444+
#define BSP_FEATURE_USB_HAS_USBHS (0U)
445+
443446
#endif

drivers/ra/fsp/src/bsp/mcu/ra4m2/bsp_feature.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,4 +442,7 @@
442442
#define BSP_FEATURE_ULPT_MAX_CHANNEL_NUM (0)
443443
#define BSP_FEATURE_ULPT_VALID_CHANNEL_MASK (0U)
444444

445+
#define BSP_FEATURE_USB_NUM_IP (1U)
446+
#define BSP_FEATURE_USB_HAS_USBHS (0U)
447+
445448
#endif

drivers/ra/fsp/src/bsp/mcu/ra4m3/bsp_feature.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,4 +443,7 @@
443443
#define BSP_FEATURE_ULPT_MAX_CHANNEL_NUM (0)
444444
#define BSP_FEATURE_ULPT_VALID_CHANNEL_MASK (0U)
445445

446+
#define BSP_FEATURE_USB_NUM_IP (1U)
447+
#define BSP_FEATURE_USB_HAS_USBHS (0U)
448+
446449
#endif

drivers/ra/fsp/src/bsp/mcu/ra4w1/bsp_feature.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,4 +440,7 @@
440440
#define BSP_FEATURE_ULPT_MAX_CHANNEL_NUM (0)
441441
#define BSP_FEATURE_ULPT_VALID_CHANNEL_MASK (0U)
442442

443+
#define BSP_FEATURE_USB_NUM_IP (1U)
444+
#define BSP_FEATURE_USB_HAS_USBHS (0U)
445+
443446
#endif

drivers/ra/fsp/src/bsp/mcu/ra6e1/bsp_feature.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,4 +442,7 @@
442442
#define BSP_FEATURE_ULPT_MAX_CHANNEL_NUM (0)
443443
#define BSP_FEATURE_ULPT_VALID_CHANNEL_MASK (0U)
444444

445+
#define BSP_FEATURE_USB_NUM_IP (1U)
446+
#define BSP_FEATURE_USB_HAS_USBHS (0U)
447+
445448
#endif

drivers/ra/fsp/src/bsp/mcu/ra6e2/bsp_feature.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,4 +440,7 @@
440440
#define BSP_FEATURE_ULPT_MAX_CHANNEL_NUM (0)
441441
#define BSP_FEATURE_ULPT_VALID_CHANNEL_MASK (0U)
442442

443+
#define BSP_FEATURE_USB_NUM_IP (1U)
444+
#define BSP_FEATURE_USB_HAS_USBHS (0U)
445+
443446
#endif

0 commit comments

Comments
 (0)