mirror of
https://github.com/hathach/tinyusb.git
synced 2025-02-11 00:39:57 +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
|
||||
// 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)
|
||||
@ -381,8 +376,6 @@ bool netd_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb_control_request_t
|
||||
ncm_report();
|
||||
}
|
||||
}
|
||||
|
||||
tud_network_link_state_cb(ncm_interface.itf_data_alt);
|
||||
}
|
||||
|
||||
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
|
||||
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
|
||||
//--------------------------------------------------------------------+
|
||||
|
@ -69,14 +69,6 @@ void tud_network_init_cb(void) {
|
||||
// TODO removed later since it is not part of tinyusb stack
|
||||
uint8_t tud_network_mac_address[6] = {0};
|
||||
|
||||
//------------- NCM -------------//
|
||||
|
||||
// callback to client providing optional indication of internal state of network
|
||||
// driver
|
||||
void tud_network_link_state_cb(bool state) {
|
||||
(void)state;
|
||||
// NoOp.
|
||||
}
|
||||
}
|
||||
} // extern "C"
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user