rename class driver close() to reset()
This commit is contained in:
@@ -232,7 +232,7 @@ tusb_error_t cdcd_open(uint8_t rhport, tusb_desc_interface_t const * p_interface
|
||||
return TUSB_ERROR_NONE;
|
||||
}
|
||||
|
||||
void cdcd_close(uint8_t rhport)
|
||||
void cdcd_reset(uint8_t rhport)
|
||||
{
|
||||
// no need to close opened pipe, dcd bus reset will put controller's endpoints to default state
|
||||
(void) rhport;
|
||||
|
||||
@@ -99,7 +99,7 @@ void cdcd_init (void);
|
||||
tusb_error_t cdcd_open (uint8_t rhport, tusb_desc_interface_t const * p_interface_desc, uint16_t *p_length);
|
||||
tusb_error_t cdcd_control_request_st (uint8_t rhport, tusb_control_request_t const * p_request);
|
||||
tusb_error_t cdcd_xfer_cb (uint8_t rhport, uint8_t edpt_addr, tusb_event_t event, uint32_t xferred_bytes);
|
||||
void cdcd_close (uint8_t rhport);
|
||||
void cdcd_reset (uint8_t rhport);
|
||||
|
||||
#if CFG_TUD_CDC_FLUSH_ON_SOF
|
||||
void cdcd_sof(uint8_t rhport);
|
||||
|
||||
Reference in New Issue
Block a user