summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2022-01-19 19:07:21 +0700
committerGitHub <[email protected]>2022-01-19 19:07:21 +0700
commite40547ada133525e5cd6249cec547277a97e3a79 (patch)
tree05c8b978d4e8802b97550942a575c2c21bb4f0c0 /hw
parent9e99269875062df118c374dc43859fb625260c8f (diff)
parent2b8b8a3a97e8e895409104689d16387967648c6d (diff)
Merge pull request #1265 from kkitayam/add_hcd_for_renesas_rx
Add HCD driver for Renesas RX
Diffstat (limited to 'hw')
-rw-r--r--hw/bsp/rx/boards/rx65n_target/r5f565ne.ld4
-rw-r--r--hw/bsp/rx/boards/rx65n_target/rx65n_target.c5
-rw-r--r--hw/bsp/rx/family.mk1
3 files changed, 8 insertions, 2 deletions
diff --git a/hw/bsp/rx/boards/rx65n_target/r5f565ne.ld b/hw/bsp/rx/boards/rx65n_target/r5f565ne.ld
index 8e5617f23..27914e64f 100644
--- a/hw/bsp/rx/boards/rx65n_target/r5f565ne.ld
+++ b/hw/bsp/rx/boards/rx65n_target/r5f565ne.ld
@@ -1,5 +1,5 @@
-__USTACK_SIZE = 0x00000400;
-__ISTACK_SIZE = 0x00000400;
+__USTACK_SIZE = 0x00000800;
+__ISTACK_SIZE = 0x00000800;
MEMORY
{
diff --git a/hw/bsp/rx/boards/rx65n_target/rx65n_target.c b/hw/bsp/rx/boards/rx65n_target/rx65n_target.c
index ab86bc419..d658ee5dd 100644
--- a/hw/bsp/rx/boards/rx65n_target/rx65n_target.c
+++ b/hw/bsp/rx/boards/rx65n_target/rx65n_target.c
@@ -176,7 +176,12 @@ void INT_Excep_SCI5_RXI5(void)
//--------------------------------------------------------------------+
void INT_Excep_USB0_USBI0(void)
{
+#if TUSB_OPT_HOST_ENABLED
+ tuh_int_handler(0);
+#endif
+#if TUSB_OPT_DEVICE_ENABLED
tud_int_handler(0);
+#endif
}
void board_init(void)
diff --git a/hw/bsp/rx/family.mk b/hw/bsp/rx/family.mk
index 5a8281718..aba05812d 100644
--- a/hw/bsp/rx/family.mk
+++ b/hw/bsp/rx/family.mk
@@ -15,6 +15,7 @@ CFLAGS += \
SRC_C += \
src/portable/renesas/usba/dcd_usba.c \
+ src/portable/renesas/usba/hcd_usba.c \
$(MCU_DIR)/vects.c
INC += \