mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-11 06:09:08 -07:00
Remove unused furi_hal_usb_get_config_context()
This commit is contained in:
@@ -1741,7 +1741,6 @@ Function,+,furi_hal_switch,void,void*
|
||||
Function,+,furi_hal_usb_disable,void,
|
||||
Function,+,furi_hal_usb_enable,void,
|
||||
Function,+,furi_hal_usb_get_config,FuriHalUsbInterface*,
|
||||
Function,+,furi_hal_usb_get_config_context,void*,
|
||||
Function,-,furi_hal_usb_init,void,
|
||||
Function,+,furi_hal_usb_is_locked,_Bool,
|
||||
Function,+,furi_hal_usb_lock,void,
|
||||
|
||||
|
@@ -17,7 +17,6 @@
|
||||
typedef enum {
|
||||
UsbApiEventTypeSetConfig,
|
||||
UsbApiEventTypeGetConfig,
|
||||
UsbApiEventTypeGetConfigContext,
|
||||
UsbApiEventTypeLock,
|
||||
UsbApiEventTypeUnlock,
|
||||
UsbApiEventTypeIsLocked,
|
||||
@@ -168,21 +167,6 @@ FuriHalUsbInterface* furi_hal_usb_get_config(void) {
|
||||
return return_data.void_value;
|
||||
}
|
||||
|
||||
void* furi_hal_usb_get_config_context(void) {
|
||||
UsbApiEventReturnData return_data = {
|
||||
.void_value = NULL,
|
||||
};
|
||||
|
||||
UsbApiEventMessage msg = {
|
||||
.lock = api_lock_alloc_locked(),
|
||||
.type = UsbApiEventTypeGetConfigContext,
|
||||
.return_data = &return_data,
|
||||
};
|
||||
|
||||
furi_hal_usb_send_message(&msg);
|
||||
return return_data.void_value;
|
||||
}
|
||||
|
||||
void furi_hal_usb_lock(void) {
|
||||
UsbApiEventMessage msg = {
|
||||
.lock = api_lock_alloc_locked(),
|
||||
@@ -426,9 +410,6 @@ static void usb_process_message(UsbApiEventMessage* message) {
|
||||
case UsbApiEventTypeGetConfig:
|
||||
message->return_data->void_value = usb.interface;
|
||||
break;
|
||||
case UsbApiEventTypeGetConfigContext:
|
||||
message->return_data->void_value = usb.interface_context;
|
||||
break;
|
||||
case UsbApiEventTypeLock:
|
||||
FURI_LOG_I(TAG, "Mode lock");
|
||||
usb.mode_lock = true;
|
||||
|
||||
@@ -57,12 +57,6 @@ bool furi_hal_usb_set_config(FuriHalUsbInterface* new_if, void* ctx);
|
||||
*/
|
||||
FuriHalUsbInterface* furi_hal_usb_get_config(void);
|
||||
|
||||
/** Get USB device configuration context
|
||||
*
|
||||
* @return current USB device context
|
||||
*/
|
||||
void* furi_hal_usb_get_config_context(void);
|
||||
|
||||
/** Lock USB device mode switch
|
||||
*/
|
||||
void furi_hal_usb_lock(void);
|
||||
|
||||
Reference in New Issue
Block a user