refractor
- rename tusbh_device_status_get to tusbh_device_get_state - replace tusbh_device_status_t by tusb_device_state_t
This commit is contained in:
+2
-4
@@ -71,7 +71,6 @@ typedef enum pipe_status_{
|
||||
} pipe_status_t;
|
||||
|
||||
typedef uint32_t tusbh_flag_class_t;
|
||||
typedef uint8_t tusbh_device_status_t;
|
||||
|
||||
typedef struct {
|
||||
void (* const init) (void);
|
||||
@@ -86,7 +85,8 @@ typedef struct {
|
||||
//--------------------------------------------------------------------+
|
||||
// APPLICATION API
|
||||
//--------------------------------------------------------------------+
|
||||
tusb_device_state_t tusbh_device_get_state(uint8_t dev_addr);
|
||||
tusb_error_t tusbh_configuration_set (uint8_t dev_addr, uint8_t configure_number) ATTR_WARN_UNUSED_RESULT;
|
||||
tusb_device_state_t tusbh_device_get_state (uint8_t const dev_addr) ATTR_WARN_UNUSED_RESULT;
|
||||
|
||||
//--------------------------------------------------------------------+
|
||||
// APPLICATION CALLBACK
|
||||
@@ -95,8 +95,6 @@ uint8_t tusbh_device_attached_cb (tusb_descriptor_device_t const *p_desc_de
|
||||
void tusbh_device_mount_succeed_cb (uint8_t dev_addr) ATTR_WEAK;
|
||||
void tusbh_device_mount_failed_cb(tusb_error_t error, tusb_descriptor_device_t const *p_desc_device) ATTR_WEAK; // TODO refractor remove desc_device
|
||||
|
||||
tusb_error_t tusbh_configuration_set (uint8_t dev_addr, uint8_t configure_number) ATTR_WARN_UNUSED_RESULT;
|
||||
tusbh_device_status_t tusbh_device_status_get (uint8_t const dev_addr) ATTR_WARN_UNUSED_RESULT;
|
||||
|
||||
#if TUSB_CFG_OS == TUSB_OS_NONE // TODO move later
|
||||
//static inline void tusb_tick_tock(void) ATTR_ALWAYS_INLINE;
|
||||
|
||||
Reference in New Issue
Block a user