mirror of
https://github.com/hathach/tinyusb.git
synced 2025-04-17 08:45:13 +00:00
rename hal_dcd_isr to dcd_irq_handler for fomu
This commit is contained in:
parent
e879ad1e6f
commit
40e23672ff
@ -14,11 +14,6 @@ BSP_DIR = hw/bsp/fomu
|
|||||||
# All source paths should be relative to the top level.
|
# All source paths should be relative to the top level.
|
||||||
LD_FILE = hw/bsp/$(BOARD)/fomu.ld
|
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
|
SRC_S += hw/bsp/fomu/crt0-vexriscv.S
|
||||||
|
|
||||||
INC += \
|
INC += \
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include "common/tusb_common.h"
|
#include "../board.h"
|
||||||
#include "csr.h"
|
#include "csr.h"
|
||||||
#include "irq.h"
|
#include "irq.h"
|
||||||
|
|
||||||
@ -34,8 +34,6 @@
|
|||||||
// Board porting API
|
// Board porting API
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
|
|
||||||
void hal_dcd_isr(uint8_t rhport);
|
|
||||||
|
|
||||||
void fomu_error(uint32_t line)
|
void fomu_error(uint32_t line)
|
||||||
{
|
{
|
||||||
(void)line;
|
(void)line;
|
||||||
@ -65,7 +63,7 @@ void isr(void)
|
|||||||
|
|
||||||
#if CFG_TUSB_RHPORT0_MODE == OPT_MODE_DEVICE
|
#if CFG_TUSB_RHPORT0_MODE == OPT_MODE_DEVICE
|
||||||
if (irqs & (1 << USB_INTERRUPT)) {
|
if (irqs & (1 << USB_INTERRUPT)) {
|
||||||
hal_dcd_isr(0);
|
tud_irq_handler(0);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if (irqs & (1 << TIMER0_INTERRUPT)) {
|
if (irqs & (1 << TIMER0_INTERRUPT)) {
|
||||||
|
@ -613,7 +613,7 @@ static void handle_setup(void)
|
|||||||
|
|
||||||
usb_setup_ev_pending_write(1);
|
usb_setup_ev_pending_write(1);
|
||||||
}
|
}
|
||||||
void hal_dcd_isr(uint8_t rhport)
|
void dcd_irq_handler(uint8_t rhport)
|
||||||
{
|
{
|
||||||
(void)rhport;
|
(void)rhport;
|
||||||
uint8_t next_ev;
|
uint8_t next_ev;
|
||||||
|
@ -1,33 +0,0 @@
|
|||||||
/*
|
|
||||||
* The MIT License (MIT)
|
|
||||||
*
|
|
||||||
* Copyright (c) 2019 Ha Thach (tinyusb.org)
|
|
||||||
*
|
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
|
||||||
* in the Software without restriction, including without limitation the rights
|
|
||||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
* copies of the Software, and to permit persons to whom the Software is
|
|
||||||
* furnished to do so, subject to the following conditions:
|
|
||||||
*
|
|
||||||
* The above copyright notice and this permission notice shall be included in
|
|
||||||
* all copies or substantial portions of the Software.
|
|
||||||
*
|
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
||||||
* THE SOFTWARE.
|
|
||||||
*
|
|
||||||
* This file is part of the TinyUSB stack.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "common/tusb_common.h"
|
|
||||||
|
|
||||||
#if (CFG_TUSB_MCU == OPT_MCU_VALENTYUSB_EPTRI)
|
|
||||||
|
|
||||||
// No HAL-specific stuff here!
|
|
||||||
|
|
||||||
#endif
|
|
Loading…
x
Reference in New Issue
Block a user