Skip to content

Commit 0ad681e

Browse files
committed
USB CFG: just code style
1 parent b602567 commit 0ad681e

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

  • firmware/hw_layer/ports/stm32/serial_over_usb

firmware/hw_layer/ports/stm32/serial_over_usb/usbcfg.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -276,11 +276,11 @@ static const uint8_t msd_string4[] = {
276276
* Strings wrappers array.
277277
*/
278278
static 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
*/
489489
const 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

Comments
 (0)