diff options
| author | hathach <[email protected]> | 2018-03-06 15:46:48 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-03-06 15:46:48 +0700 |
| commit | 85511e288d04d7ab9921e58b58f1628b4d18833c (patch) | |
| tree | 546e99ec85198567785897ea9fa5ab81de1ce588 /tinyusb/device/dcd.h | |
| parent | f9270ac5a4cf240a743a459646a0478827c49bee (diff) | |
rename to hal_dcd_control_xfer() and hal_dcd_control_stall()
Diffstat (limited to 'tinyusb/device/dcd.h')
| -rw-r--r-- | tinyusb/device/dcd.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tinyusb/device/dcd.h b/tinyusb/device/dcd.h index 1c60c3056..2fa8f1b86 100644 --- a/tinyusb/device/dcd.h +++ b/tinyusb/device/dcd.h @@ -57,6 +57,7 @@ typedef enum USBD_BUS_EVENT_RESUME
}usbd_bus_event_type_t;
+// TODO move Hal
typedef struct {
uint8_t coreid;
uint8_t reserved; // TODO redundant, cannot be control as control uses separated API
@@ -91,8 +92,8 @@ void hal_dcd_bus_event(uint8_t coreid, usbd_bus_event_type_t bus_event); void hal_dcd_setup_received(uint8_t coreid, uint8_t const* p_request);
//------------- PIPE API -------------//
-bool dcd_pipe_control_xfer(uint8_t coreid, tusb_direction_t dir, uint8_t * p_buffer, uint16_t length, bool int_on_complete);
-void dcd_pipe_control_stall(uint8_t coreid);
+bool hal_dcd_control_xfer(uint8_t coreid, tusb_direction_t dir, uint8_t * p_buffer, uint16_t length, bool int_on_complete);
+void hal_dcd_control_stall(uint8_t coreid);
endpoint_handle_t dcd_pipe_open(uint8_t coreid, tusb_descriptor_endpoint_t const * p_endpoint_desc, uint8_t class_code);
tusb_error_t dcd_pipe_queue_xfer(endpoint_handle_t edpt_hdl, uint8_t * buffer, uint16_t total_bytes); // only queue, not transferring yet
|
