remove weak from dcd_edpt_close() for port without TUP_DCD_EDPT_ISO_ALLOC
This commit is contained in:
		| @@ -181,7 +181,7 @@ bool dcd_edpt_iso_activate(uint8_t rhport, tusb_desc_endpoint_t const * desc_ep) | ||||
|  | ||||
| #else | ||||
| // Close an endpoint. | ||||
| void dcd_edpt_close (uint8_t rhport, uint8_t ep_addr) TU_ATTR_WEAK; | ||||
| void dcd_edpt_close(uint8_t rhport, uint8_t ep_addr); | ||||
|  | ||||
| #endif | ||||
|  | ||||
|   | ||||
| @@ -277,6 +277,11 @@ bool dcd_edpt_open (uint8_t rhport, tusb_desc_endpoint_t const * ep_desc) | ||||
|   return true; | ||||
| } | ||||
|  | ||||
| void dcd_edpt_close(uint8_t rhport, uint8_t ep_addr) { | ||||
|   (void) rhport; (void) ep_addr; | ||||
|   // TODO implement dcd_edpt_close() | ||||
| } | ||||
|  | ||||
| void dcd_edpt_close_all (uint8_t rhport) | ||||
| { | ||||
|   (void) rhport; | ||||
|   | ||||
| @@ -335,6 +335,11 @@ bool dcd_edpt_open(uint8_t rhport, tusb_desc_endpoint_t const * p_endpoint_desc) | ||||
|   return true; | ||||
| } | ||||
|  | ||||
| void dcd_edpt_close(uint8_t rhport, uint8_t ep_addr) { | ||||
|   (void) rhport; (void) ep_addr; | ||||
|   // TODO implement dcd_edpt_close() | ||||
| } | ||||
|  | ||||
| void dcd_edpt_close_all (uint8_t rhport) | ||||
| { | ||||
|   (void) rhport; | ||||
|   | ||||
| @@ -102,6 +102,22 @@ bool dcd_edpt_open (uint8_t rhport, tusb_desc_endpoint_t const * ep_desc) | ||||
|   return false; | ||||
| } | ||||
|  | ||||
| // Allocate packet buffer used by ISO endpoints | ||||
| // Some MCU need manual packet buffer allocation, we allocate the largest size to avoid clustering | ||||
| bool dcd_edpt_iso_alloc(uint8_t rhport, uint8_t ep_addr, uint16_t largest_packet_size) { | ||||
|   (void) rhport; | ||||
|   (void) ep_addr; | ||||
|   (void) largest_packet_size; | ||||
|   return false; | ||||
| } | ||||
|  | ||||
| // Configure and enable an ISO endpoint according to descriptor | ||||
| bool dcd_edpt_iso_activate(uint8_t rhport, tusb_desc_endpoint_t const * desc_ep) { | ||||
|   (void) rhport; | ||||
|   (void) desc_ep; | ||||
|   return false; | ||||
| } | ||||
|  | ||||
| void dcd_edpt_close_all (uint8_t rhport) | ||||
| { | ||||
|   (void) rhport; | ||||
|   | ||||
| @@ -332,6 +332,11 @@ bool dcd_edpt_open (uint8_t rhport, tusb_desc_endpoint_t const * desc_edpt) | ||||
|   return true; | ||||
| } | ||||
|  | ||||
| void dcd_edpt_close(uint8_t rhport, uint8_t ep_addr) { | ||||
|   (void) rhport; (void) ep_addr; | ||||
|   // TODO implement dcd_edpt_close() | ||||
| } | ||||
|  | ||||
| void dcd_edpt_close_all (uint8_t rhport) | ||||
| { | ||||
|   (void) rhport; | ||||
|   | ||||
| @@ -436,6 +436,11 @@ bool dcd_edpt_open(uint8_t rhport, tusb_desc_endpoint_t const * p_endpoint_desc) | ||||
|   return true; | ||||
| } | ||||
|  | ||||
| void dcd_edpt_close(uint8_t rhport, uint8_t ep_addr) { | ||||
|   (void) rhport; (void) ep_addr; | ||||
|   // TODO implement dcd_edpt_close() | ||||
| } | ||||
|  | ||||
| void dcd_edpt_close_all (uint8_t rhport) | ||||
| { | ||||
|   (void) rhport; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 hathach
					hathach