@@ -276,11 +276,11 @@ static const uint8_t msd_string4[] = {
276276 * Strings wrappers array.
277277 */
278278static const USBDescriptor vcom_strings[] = {
279- {sizeof vcom_string0, vcom_string0},
280- {sizeof vcom_string1, vcom_string1},
281- {sizeof vcom_string2, vcom_string2},
282- {sizeof vcom_string3, vcom_string3},
283- {sizeof msd_string4, msd_string4}
279+ { sizeof ( vcom_string0) , vcom_string0 },
280+ { sizeof ( vcom_string1) , vcom_string1 },
281+ { sizeof ( vcom_string2) , vcom_string2 },
282+ { sizeof ( vcom_string3) , vcom_string3 },
283+ { sizeof ( msd_string4) , msd_string4 }
284284};
285285
286286#ifndef BOARD_SERIAL
@@ -487,10 +487,10 @@ static bool hybridRequestHook(USBDriver *usbp) {
487487 * USB driver configuration.
488488 */
489489const USBConfig usbcfg = {
490- usb_event,
491- get_descriptor,
492- hybridRequestHook,
493- sof_handler
490+ . event_cb = usb_event,
491+ . get_descriptor_cb = get_descriptor,
492+ . requests_hook_cb = hybridRequestHook,
493+ . sof_cb = sof_handler
494494};
495495
496496/*
0 commit comments