summaryrefslogtreecommitdiff
path: root/stmhal/usb.h
diff options
context:
space:
mode:
Diffstat (limited to 'stmhal/usb.h')
-rw-r--r--stmhal/usb.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/stmhal/usb.h b/stmhal/usb.h
index debb4aa7c..e153f0c6b 100644
--- a/stmhal/usb.h
+++ b/stmhal/usb.h
@@ -53,9 +53,9 @@ extern const struct _mp_obj_tuple_t pyb_usb_hid_mouse_obj;
extern const struct _mp_obj_tuple_t pyb_usb_hid_keyboard_obj;
extern const mp_obj_type_t pyb_usb_vcp_type;
extern const mp_obj_type_t pyb_usb_hid_type;
-MP_DECLARE_CONST_FUN_OBJ(pyb_usb_mode_obj);
-MP_DECLARE_CONST_FUN_OBJ(pyb_have_cdc_obj); // deprecated
-MP_DECLARE_CONST_FUN_OBJ(pyb_hid_send_report_obj); // deprecated
+MP_DECLARE_CONST_FUN_OBJ_KW(pyb_usb_mode_obj);
+MP_DECLARE_CONST_FUN_OBJ_0(pyb_have_cdc_obj); // deprecated
+MP_DECLARE_CONST_FUN_OBJ_1(pyb_hid_send_report_obj); // deprecated
void pyb_usb_init0(void);
bool pyb_usb_dev_init(uint16_t vid, uint16_t pid, usb_device_mode_t mode, USBD_HID_ModeInfoTypeDef *hid_info);