mirror of
https://github.com/hathach/tinyusb.git
synced 2025-04-16 05:42:56 +00:00
removed obsolete tud_network_link_state_cb()
This commit is contained in:
parent
92457ec99f
commit
798ff807b3
@ -337,11 +337,6 @@ static void ncm_report(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
TU_ATTR_WEAK void tud_network_link_state_cb(bool state)
|
|
||||||
{
|
|
||||||
(void)state;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Handle class control request
|
// Handle class control request
|
||||||
// return false to stall control endpoint (e.g unsupported request)
|
// return false to stall control endpoint (e.g unsupported request)
|
||||||
bool netd_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb_control_request_t const * request)
|
bool netd_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb_control_request_t const * request)
|
||||||
@ -381,8 +376,6 @@ bool netd_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb_control_request_t
|
|||||||
ncm_report();
|
ncm_report();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tud_network_link_state_cb(ncm_interface.itf_data_alt);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tud_control_status(rhport, request);
|
tud_control_status(rhport, request);
|
||||||
|
@ -96,11 +96,6 @@ void tud_network_init_cb(void);
|
|||||||
// TODO removed later since it is not part of tinyusb stack
|
// TODO removed later since it is not part of tinyusb stack
|
||||||
extern uint8_t tud_network_mac_address[6];
|
extern uint8_t tud_network_mac_address[6];
|
||||||
|
|
||||||
//------------- NCM -------------//
|
|
||||||
|
|
||||||
// callback to client providing optional indication of internal state of network driver
|
|
||||||
void tud_network_link_state_cb(bool state);
|
|
||||||
|
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
// INTERNAL USBD-CLASS DRIVER API
|
// INTERNAL USBD-CLASS DRIVER API
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
|
@ -69,14 +69,6 @@ void tud_network_init_cb(void) {
|
|||||||
// TODO removed later since it is not part of tinyusb stack
|
// TODO removed later since it is not part of tinyusb stack
|
||||||
uint8_t tud_network_mac_address[6] = {0};
|
uint8_t tud_network_mac_address[6] = {0};
|
||||||
|
|
||||||
//------------- NCM -------------//
|
} // extern "C"
|
||||||
|
|
||||||
// callback to client providing optional indication of internal state of network
|
|
||||||
// driver
|
|
||||||
void tud_network_link_state_cb(bool state) {
|
|
||||||
(void)state;
|
|
||||||
// NoOp.
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user