diff options
| author | hathach <[email protected]> | 2020-04-08 16:47:20 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2020-04-08 16:47:20 +0700 |
| commit | 40e23672ff192b3d0ab1312987ecc94d4e0de0e7 (patch) | |
| tree | c204f32c3482f406d77816835fe57328ef18f3c9 /hw/bsp | |
| parent | e879ad1e6f6535768ebcf05f02f30a8266518276 (diff) | |
rename hal_dcd_isr to dcd_irq_handler for fomu
Diffstat (limited to 'hw/bsp')
| -rw-r--r-- | hw/bsp/fomu/board.mk | 5 | ||||
| -rw-r--r-- | hw/bsp/fomu/fomu.c | 8 |
2 files changed, 3 insertions, 10 deletions
diff --git a/hw/bsp/fomu/board.mk b/hw/bsp/fomu/board.mk index 403a7fb95..ffd0158c9 100644 --- a/hw/bsp/fomu/board.mk +++ b/hw/bsp/fomu/board.mk @@ -14,11 +14,6 @@ BSP_DIR = hw/bsp/fomu # All source paths should be relative to the top level. LD_FILE = hw/bsp/$(BOARD)/fomu.ld -# TODO remove later -SRC_C += src/portable/$(VENDOR)/$(CHIP_FAMILY)/hal_$(CHIP_FAMILY).c - -SRC_C += - SRC_S += hw/bsp/fomu/crt0-vexriscv.S INC += \ diff --git a/hw/bsp/fomu/fomu.c b/hw/bsp/fomu/fomu.c index 519c63630..404b72333 100644 --- a/hw/bsp/fomu/fomu.c +++ b/hw/bsp/fomu/fomu.c @@ -26,7 +26,7 @@ #include <stdint.h> #include <stdbool.h> -#include "common/tusb_common.h" +#include "../board.h" #include "csr.h" #include "irq.h" @@ -34,8 +34,6 @@ // Board porting API //--------------------------------------------------------------------+ -void hal_dcd_isr(uint8_t rhport); - void fomu_error(uint32_t line) { (void)line; @@ -65,7 +63,7 @@ void isr(void) #if CFG_TUSB_RHPORT0_MODE == OPT_MODE_DEVICE if (irqs & (1 << USB_INTERRUPT)) { - hal_dcd_isr(0); + tud_irq_handler(0); } #endif if (irqs & (1 << TIMER0_INTERRUPT)) { @@ -114,4 +112,4 @@ uint32_t board_millis(void) { return system_ticks; } -#endif
\ No newline at end of file +#endif |
