From 85511e288d04d7ab9921e58b58f1628b4d18833c Mon Sep 17 00:00:00 2001 From: hathach Date: Tue, 6 Mar 2018 15:46:48 +0700 Subject: rename to hal_dcd_control_xfer() and hal_dcd_control_stall() --- tinyusb/device/dcd.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tinyusb/device/dcd.h') 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 -- cgit v1.3.1