diff options
| author | hathach <[email protected]> | 2018-03-02 22:46:36 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-03-02 22:46:36 +0700 |
| commit | 33d348c288514bb2c949944e06cf45fc6751929f (patch) | |
| tree | 7083576e448daf116fb942a3ff8fff3948d47243 /tinyusb/device/dcd.h | |
| parent | b0a6395a4526b07fe66b356e7990a11fe6b815a9 (diff) | |
rename dcd_init to hal_dcd_init()
Diffstat (limited to 'tinyusb/device/dcd.h')
| -rw-r--r-- | tinyusb/device/dcd.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tinyusb/device/dcd.h b/tinyusb/device/dcd.h index 144f5a1aa..acbcd4957 100644 --- a/tinyusb/device/dcd.h +++ b/tinyusb/device/dcd.h @@ -68,7 +68,7 @@ static inline bool endpointhandle_is_equal(endpoint_handle_t x, endpoint_handle_ return (x.coreid == y.coreid) && (x.index == y.index) && (x.class_code == y.class_code);
}
-tusb_error_t dcd_init(void) ATTR_WARN_UNUSED_RESULT;
+bool hal_dcd_init(uint8_t coreid);
void dcd_isr(uint8_t coreid);
@@ -82,11 +82,12 @@ void dcd_controller_set_configuration (uint8_t coreid); tusb_error_t 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);
-endpoint_handle_t dcd_pipe_open(uint8_t coreid, tusb_descriptor_endpoint_t const * p_endpoint_desc, uint8_t class_code) ATTR_WARN_UNUSED_RESULT;
-tusb_error_t dcd_pipe_queue_xfer(endpoint_handle_t edpt_hdl, uint8_t * buffer, uint16_t total_bytes) ATTR_WARN_UNUSED_RESULT; // only queue, not transferring yet
-tusb_error_t dcd_pipe_xfer(endpoint_handle_t edpt_hdl, uint8_t * buffer, uint16_t total_bytes, bool int_on_complete) ATTR_WARN_UNUSED_RESULT;
+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
+tusb_error_t dcd_pipe_xfer(endpoint_handle_t edpt_hdl, uint8_t * buffer, uint16_t total_bytes, bool int_on_complete);
tusb_error_t dcd_pipe_stall(endpoint_handle_t edpt_hdl);
-bool dcd_pipe_is_busy(endpoint_handle_t edpt_hdl) ATTR_WARN_UNUSED_RESULT ;
+
+bool dcd_pipe_is_busy(endpoint_handle_t edpt_hdl);
// TODO coreid + endpoint address are part of endpoint handle, not endpoint handle, data toggle also need to be reset
tusb_error_t dcd_pipe_clear_stall(uint8_t coreid, uint8_t edpt_addr);
|
