mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-17 05:32:55 +08:00
clean up warning
This commit is contained in:
parent
8cae17bfc8
commit
05f59fb8ed
@ -43,11 +43,6 @@ INC += \
|
|||||||
$(TOP)/$(ASF_DIR)/hri \
|
$(TOP)/$(ASF_DIR)/hri \
|
||||||
$(TOP)/$(ASF_DIR)/CMSIS/Core/Include
|
$(TOP)/$(ASF_DIR)/CMSIS/Core/Include
|
||||||
|
|
||||||
# For TinyUSB port source
|
|
||||||
#SRC_C += src/portable/template/dcd_template.c
|
|
||||||
VENDOR = .
|
|
||||||
CHIP_FAMILY = template
|
|
||||||
|
|
||||||
# For freeRTOS port source
|
# For freeRTOS port source
|
||||||
FREERTOS_PORT = ARM_CM7
|
FREERTOS_PORT = ARM_CM7
|
||||||
|
|
||||||
|
@ -111,9 +111,7 @@ void board_init(void)
|
|||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
void USBHS_Handler(void)
|
void USBHS_Handler(void)
|
||||||
{
|
{
|
||||||
#if CFG_TUSB_RHPORT0_MODE & OPT_MODE_DEVICE
|
tud_int_handler(0);
|
||||||
tud_int_handler(0);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
|
@ -542,8 +542,8 @@ bool dcd_edpt_open (uint8_t rhport, tusb_desc_endpoint_t const * ep_desc)
|
|||||||
|
|
||||||
void dcd_edpt_close(uint8_t rhport, uint8_t ep_addr)
|
void dcd_edpt_close(uint8_t rhport, uint8_t ep_addr)
|
||||||
{
|
{
|
||||||
|
(void) rhport;
|
||||||
uint8_t const epnum = tu_edpt_number(ep_addr);
|
uint8_t const epnum = tu_edpt_number(ep_addr);
|
||||||
(void) ep_addr;
|
|
||||||
|
|
||||||
// Disable endpoint interrupt
|
// Disable endpoint interrupt
|
||||||
USBHS->USBHS_DEVIDR = 1 << (USBHS_DEVIDR_PEP_0_Pos + epnum);
|
USBHS->USBHS_DEVIDR = 1 << (USBHS_DEVIDR_PEP_0_Pos + epnum);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user