-
Notifications
You must be signed in to change notification settings - Fork 14
/
Release_Notes.html
1140 lines (1139 loc) · 31.9 KB
/
Release_Notes.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta charset="utf-8" />
<meta name="generator" content="pandoc" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<title>Release Notes for STM32Cube USB Device Library</title>
<style>
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
span.underline{text-decoration: underline;}
div.column{display: inline-block; vertical-align: top; width: 50%;}
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
ul.task-list{list-style: none;}
.display.math{display: block; text-align: center; margin: 0.5rem auto;}
</style>
<link rel="stylesheet" href="_htmresc/mini-st.css" />
<link rel="icon" type="image/x-icon" href="_htmresc/favicon.png" />
<!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
<![endif]-->
</head>
<body>
<div class="row">
<div class="col-sm-12 col-lg-4">
<center>
<h1 id="release-notes-for-stm32cube-usb-device-library">Release Notes
for <mark>STM32Cube USB Device Library</mark></h1>
<p>Copyright © 2015 STMicroelectronics<br />
</p>
<a href="https://www.st.com" class="logo"><img
src="_htmresc/st_logo_2020.png" alt="ST logo" /></a>
</center>
<h1 id="purpose">Purpose</h1>
<p>The USB device library comes on top of the STM32Cube™ USB device HAL
driver and offers all the APIs required to develop an USB device
application.</p>
<p>The main USB device library features are:</p>
<ul>
<li>Support of multi packet transfer features allowing sending big
amount of data without splitting it into max packet size transfers.</li>
<li>Support of most common USB Class drivers (HID, MSC, DFU, CDC-ACM,
CDC-ECM, RNDIS, MTP, AUDIO1.0, Printer, Video, Composite)</li>
<li>Configuration files to interface with Cube HAL and change the
library configuration without changing the library code (Read
Only).</li>
<li>32-bits aligned data structures to handle DMA based transfer in High
speed modes.</li>
</ul>
<p>Here is the list of references to user documents:</p>
<ul>
<li><a
href="https://www.st.com/resource/en/user_manual/DM00108129.pdf">UM1734</a>
: STM32Cube USB device library User Manual</li>
<li><a href="https://wiki.st.com/stm32mcu/wiki/USB_overview">Wiki
Page</a> : STM32Cube USB Wiki Page</li>
</ul>
</div>
<section id="update-history" class="col-sm-12 col-lg-8">
<h1>Update History</h1>
<div class="collapse">
<input type="checkbox" id="collapse-section23" checked aria-hidden="true">
<label for="collapse-section23" aria-hidden="true">V2.11.3 /
20-December-2023</label>
<div>
<h2 id="main-changes">Main Changes</h2>
<table>
<thead>
<tr class="header">
<th style="text-align: left;">Headline</th>
</tr>
</thead>
<tbody>
<tr class="even">
<td style="text-align: left;"><strong>USB Core:</strong></td>
</tr>
<tr class="odd">
<td style="text-align: left;">Minor enhancement; add a check on device string descriptor length</td>
</tr>
<tr class="even">
<td style="text-align: left;"><strong>USB DFU Class:</strong></td>
</tr>
<tr class="odd">
<td style="text-align: left;">Improve DFU Vendor Commands support</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="collapse">
<input type="checkbox" id="collapse-section23" aria-hidden="true">
<label for="collapse-section23" aria-hidden="true">V2.11.2 /
17-April-2023</label>
<div>
<h2 id="main-changes">Main Changes</h2>
<table>
<thead>
<tr class="header">
<th style="text-align: left;">Headline</th>
</tr>
</thead>
<tbody>
<tr class="even">
<td style="text-align: left;"><strong>USB Core:</strong></td>
</tr>
<tr class="odd">
<td style="text-align: left;">Adding user callback to get device configuration state</td>
</tr>
<tr class="even">
<td style="text-align: left;"><strong>USB DFU Class:</strong></td>
</tr>
<tr class="odd">
<td style="text-align: left;">Adding DFU Vendor Commands support</td>
</tr>
<tr class="even">
<td style="text-align: left;"><strong>USB MSC Class:</strong></td>
</tr>
<tr class="odd">
<td style="text-align: left;">fix data sense response to be aligned with SBC-3 specification</td>
</tr>
<tr class="even">
<td style="text-align: left;"><strong>USB AUDIO Class:</strong></td>
</tr>
<tr class="odd">
<td style="text-align: left;">restart AUDIO ISO endpoint during ISO incomplete event</td>
</tr>
<tr class="even">
<td style="text-align: left;"><strong>USB VIDEO Class:</strong></td>
</tr>
<tr class="odd">
<td style="text-align: left;">restart VIDEO ISO endpoint during ISO incomplete event</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="collapse">
<input type="checkbox" id="collapse-section22" aria-hidden="true">
<label for="collapse-section22" aria-hidden="true">V2.11.1 /
27-September-2022</label>
<div>
<h2 id="main-changes">Main Changes</h2>
<table>
<thead>
<tr class="header">
<th style="text-align: left;">Headline</th>
</tr>
</thead>
<tbody>
<tr class="even">
<td style="text-align: left;"> Improvement of the memory management
</td>
</tr>
<tr class="odd">
<td style="text-align: left;"><strong>USB Core:</strong></td>
</tr>
<tr class="even">
<td style="text-align: left;">Fix some compilation warnings related
to unused parameters</td>
</tr>
<tr class="odd">
<td style="text-align: left;">Improve some code parts style</td>
</tr>
<tr class="even">
<td style="text-align: left;">Add check on the USB Device status in
USBD_LL_Suspend before suspending it</td>
</tr>
<tr class="odd">
<td style="text-align: left;"><strong>USB CDC-ACM Class:</strong></td>
</tr>
<tr class="even">
<td style="text-align: left;">Remove redundant prototype declaration of
USBD_CDC_GetOtherSpeedCfgDesc()</td>
</tr>
<tr class="odd">
<td style="text-align: left;"><strong>USB CompositeBuilder, CCID, CDC_ECM, CDC_RNDIS,
CustomHID, MSC & Video Classes:</strong></td>
</tr>
<tr class="even">
<td style="text-align: left;"> Improve some code parts style </td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="collapse">
<input type="checkbox" id="collapse-section21" aria-hidden="true">
<label for="collapse-section21" aria-hidden="true">V2.11.0 /
25-March-2022</label>
<div>
<h2 id="main-changes">Main Changes</h2>
<table>
<thead>
<tr class="header">
<th style="text-align: left;">Headline</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: left;"><strong>USB VIDEO Class:</strong></td>
</tr>
<tr class="even">
<td style="text-align: left;">Correction of the support of
VS_PROBE_CONTROL & VS_COMMIT_CONTROL requests</td>
</tr>
<tr class="odd">
<td style="text-align: left;"><strong>USB AUDIO Class:</strong></td>
</tr>
<tr class="even">
<td style="text-align: left;">Correction of the check on
AUDIO_TOTAL_BUF_SIZE to avoid vulnerabilities</td>
</tr>
<tr class="odd">
<td style="text-align: left;"><strong>USB HID Class:</strong></td>
</tr>
<tr class="even">
<td style="text-align: left;">Modification of some constants names to
avoid duplication versus USB host library</td>
</tr>
<tr class="odd">
<td style="text-align: left;"><strong>USB CustomHID Class:</strong></td>
</tr>
<tr class="even">
<td style="text-align: left;">Add support of Get Report control
request</td>
</tr>
<tr class="odd">
<td style="text-align: left;">Allow disabling EP OUT prepare receive
using a dedicated macros that can be defined in usbd_conf.h application
file</td>
</tr>
<tr class="even">
<td style="text-align: left;">Add support of Report Descriptor with
length greater than 255 bytes</td>
</tr>
<tr class="odd">
<td style="text-align: left;"><strong>USB CCID Class:</strong></td>
</tr>
<tr class="even">
<td style="text-align: left;">Fix minor Code Spelling warning</td>
</tr>
<tr class="odd">
<td style="text-align: left;"><strong>USB All Classes:</strong></td>
</tr>
<tr class="even">
<td style="text-align: left;">Update all classes to support composite
multi-instance using the class id parameter</td>
</tr>
<tr class="odd">
<td style="text-align: left;">Fix code spelling and improve code
style</td>
</tr>
<tr class="even">
<td style="text-align: left;">fix misraC 2012 rule 10.3</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="collapse">
<input type="checkbox" id="collapse-section20" aria-hidden="true">
<label for="collapse-section20" aria-hidden="true">V2.10.0 /
03-Sept-2021</label>
<div>
<h2 id="main-changes-1">Main Changes</h2>
<table>
<thead>
<tr class="header">
<th style="text-align: left;">Headline</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: left;"><strong>Integration of new USB device
Class driver:</strong></td>
</tr>
<tr class="even">
<td style="text-align: left;">Adding support of Composite devices with
an auto generation of composite device configuration descriptors</td>
</tr>
<tr class="odd">
<td style="text-align: left;"><strong>USB All Classes:</strong></td>
</tr>
<tr class="even">
<td style="text-align: left;">Fix Code Spelling and improve Code
Style</td>
</tr>
<tr class="odd">
<td style="text-align: left;">Update device class drivers to support
Composite devices</td>
</tr>
<tr class="even">
<td style="text-align: left;">Improve declaration of USB configuration
descriptor table which is allocated if the composite builder is not
selected</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="collapse">
<input type="checkbox" id="collapse-section19" aria-hidden="true">
<label for="collapse-section19" aria-hidden="true">V2.9.0 /
06-July-2021</label>
<div>
<h2 id="main-changes-2">Main Changes</h2>
<table>
<thead>
<tr class="header">
<th style="text-align: left;">Headline</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: left;"><strong>Integration of new USB device
Class driver:</strong></td>
</tr>
<tr class="even">
<td style="text-align: left;">USB CCID Class driver based on Universal
Serial Bus Device Class Definition for Integrated Circuit(s) Cards
Interface Devices Revision 1.1</td>
</tr>
<tr class="odd">
<td style="text-align: left;">USB MTP Class driver based on Universal
Serial Bus Device Class Media Transfer Protocol Revision 1.1</td>
</tr>
<tr class="even">
<td style="text-align: left;"><strong>USB All Classes:</strong></td>
</tr>
<tr class="odd">
<td style="text-align: left;">Fix Code Spelling and improve Code
Style</td>
</tr>
<tr class="even">
<td style="text-align: left;">Update the way to declare licenses</td>
</tr>
<tr class="odd">
<td style="text-align: left;"><strong>USB CDC/RNDIS/ECM
Classes:</strong></td>
</tr>
<tr class="even">
<td style="text-align: left;">Fix compilation warning with C++ due to
missing casting during class handler allocation</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="collapse">
<input type="checkbox" id="collapse-section18" aria-hidden="true">
<label for="collapse-section18" aria-hidden="true">V2.8.0 /
10-Mars-2021</label>
<div>
<h2 id="main-changes-3">Main Changes</h2>
<table>
<thead>
<tr class="header">
<th style="text-align: left;">Headline</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: left;"><strong>Integration of new USB device
Class driver:</strong></td>
</tr>
<tr class="even">
<td style="text-align: left;">USB Printer Class driver based on
Universal Serial Bus Device Class Definition for Printing Devices
Version 1.1</td>
</tr>
<tr class="odd">
<td style="text-align: left;"><strong>USB All Classes:</strong></td>
</tr>
<tr class="even">
<td style="text-align: left;">Fix USB buffer overflow vulnerability for
CDC, CDC-ECM, CDC-RNDIS, DFU, AUDIO, CustomHID, and Video Classes</td>
</tr>
<tr class="odd">
<td style="text-align: left;">Fix compilation warning with C++ due to
missing casting during class handler allocation</td>
</tr>
<tr class="even">
<td style="text-align: left;">Enhance comments of USB configuration
descriptors fields</td>
</tr>
<tr class="odd">
<td style="text-align: left;"><strong>USB Video Class:</strong></td>
</tr>
<tr class="even">
<td style="text-align: left;">Fix missing closing bracket for extern “C”
in usbd_video.h</td>
</tr>
<tr class="odd">
<td style="text-align: left;">Fix USBCV test with Uncompressed video
format support</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="collapse">
<input type="checkbox" id="collapse-section17" aria-hidden="true">
<label for="collapse-section17" aria-hidden="true">V2.7.1 /
18-August-2020</label>
<div>
<h2 id="main-changes-4">Main Changes</h2>
<table>
<thead>
<tr class="header">
<th style="text-align: left;">Headline</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: left;">USB All Class: Add NULL pointer access
check to Class handler</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="collapse">
<input type="checkbox" id="collapse-section16" aria-hidden="true">
<label for="collapse-section16" aria-hidden="true">V2.7.0 /
12-August-2020</label>
<div>
<h2 id="main-changes-5">Main Changes</h2>
<table>
<thead>
<tr class="header">
<th style="text-align: left;">Headline</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: left;"><strong>Integration of new USB device
Class driver:</strong></td>
</tr>
<tr class="even">
<td style="text-align: left;">USB video Class driver based on USB-IF
video class definition version 1.1</td>
</tr>
<tr class="odd">
<td style="text-align: left;"><strong>USB Core:</strong></td>
</tr>
<tr class="even">
<td style="text-align: left;">Enhance NULL pointer check in Core
APIs</td>
</tr>
<tr class="odd">
<td style="text-align: left;">Allow supporting both USER and USER Class
string desc</td>
</tr>
<tr class="even">
<td style="text-align: left;">Add support of USB controller which
handles packet-size splitting by hardware</td>
</tr>
<tr class="odd">
<td style="text-align: left;">Avoid compilation warning due macro
redefinition</td>
</tr>
<tr class="even">
<td style="text-align: left;">change added to USBD_HandleTypeDef
structure: dev_state, old_dev_state and ep0_state declaration become
volatile to disable compiler optimization</td>
</tr>
<tr class="odd">
<td style="text-align: left;">Word spelling correction and file
indentation improved</td>
</tr>
<tr class="even">
<td style="text-align: left;">usbd_conf.h/c Template file updated to
suggest using by default a static memory allocation for Class
handler</td>
</tr>
<tr class="odd">
<td style="text-align: left;"><strong>USB All Classes:</strong></td>
</tr>
<tr class="even">
<td style="text-align: left;">Word spelling correction and file
indentation improved</td>
</tr>
<tr class="odd">
<td style="text-align: left;">Allow updating device config descriptor
Max power from user code usbd_conf.h using USBD_MAX_POWER define</td>
</tr>
<tr class="even">
<td style="text-align: left;">Fix device config descriptor bmAttributes
value which depends on user code define USBD_SELF_POWERED</td>
</tr>
<tr class="odd">
<td style="text-align: left;"><strong>USB CDC Class:</strong></td>
</tr>
<tr class="even">
<td style="text-align: left;">Class specific request, add protection to
limit the maximum data length to be sent by the CDC device</td>
</tr>
<tr class="odd">
<td style="text-align: left;"><strong>USB CustomHID Class:</strong></td>
</tr>
<tr class="even">
<td style="text-align: left;">Allow changing CustomHID data EP size from
user code</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="collapse">
<input type="checkbox" id="collapse-section15" aria-hidden="true">
<label for="collapse-section15" aria-hidden="true">V2.6.1 /
05-June-2020</label>
<div>
<h2 id="main-changes-6">Main Changes</h2>
<table>
<thead>
<tr class="header">
<th style="text-align: left;">Headline</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: left;">Fix minor misra-c 2012 violations</td>
</tr>
<tr class="even">
<td style="text-align: left;"><strong>USB Core:</strong></td>
</tr>
<tr class="odd">
<td style="text-align: left;">minor rework on USBD_Init()
USBD_DeInit()</td>
</tr>
<tr class="even">
<td style="text-align: left;">Fix warning issue with Keil due to missing
return value of setup API</td>
</tr>
<tr class="odd">
<td style="text-align: left;"><strong>USB CDC Class:</strong></td>
</tr>
<tr class="even">
<td style="text-align: left;">Fix file indentation</td>
</tr>
<tr class="odd">
<td style="text-align: left;">Avoid accessing to NULL pointer in case
TransmitCplt() user fops is not defined to allow application
compatibility with device library version below v2.6.0</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="collapse">
<input type="checkbox" id="collapse-section14" aria-hidden="true">
<label for="collapse-section14" aria-hidden="true">V2.6.0 /
27-December-2019</label>
<div>
<h2 id="main-changes-7">Main Changes</h2>
<table>
<thead>
<tr class="header">
<th style="text-align: left;">Headline</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: left;">Integration of three new USB device Class
drivers:CDC ECM , CDC RNDIS Microsoft, USB Billboard</td>
</tr>
<tr class="even">
<td style="text-align: left;">Fix mandatory misra-c 2012 violations</td>
</tr>
<tr class="odd">
<td style="text-align: left;">update user core and class template
files</td>
</tr>
<tr class="even">
<td style="text-align: left;"><strong>USB Core:</strong></td>
</tr>
<tr class="odd">
<td style="text-align: left;">Fix unexpected EP0 stall during
enumeration phase</td>
</tr>
<tr class="even">
<td style="text-align: left;">Improve APIs error management and prevent
accessing NULL pointers</td>
</tr>
<tr class="odd">
<td style="text-align: left;"><strong>USB MSC Class:</strong></td>
</tr>
<tr class="even">
<td style="text-align: left;">Fix USBCV specific class tests</td>
</tr>
<tr class="odd">
<td style="text-align: left;">Fix multiple error with SCSI commands
handling</td>
</tr>
<tr class="even">
<td style="text-align: left;">Protect medium access when host ask for
medium ejection</td>
</tr>
<tr class="odd">
<td style="text-align: left;"><strong>USB CDC Class:</strong></td>
</tr>
<tr class="even">
<td style="text-align: left;">Add new function to inform user that
current IN transfer is completed</td>
</tr>
<tr class="odd">
<td style="text-align: left;">update transmit and receive APIs to
transfer up to 64KB</td>
</tr>
<tr class="even">
<td style="text-align: left;"><strong>USB AUDIO Class:</strong></td>
</tr>
<tr class="odd">
<td style="text-align: left;">Fix audio sync start buffer size</td>
</tr>
<tr class="even">
<td style="text-align: left;">update user callback periodicTC args by
adding pointer to user buffer and size</td>
</tr>
<tr class="odd">
<td style="text-align: left;"><strong>USB CustomHID Class:</strong></td>
</tr>
<tr class="even">
<td style="text-align: left;">Rework the OUT transfer complete and
prevent automatically re-enabling the OUT EP</td>
</tr>
<tr class="odd">
<td style="text-align: left;">Add new user API to restart the OUT
transfer: USBD_CUSTOM_HID_ReceivePacket()</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="collapse">
<input type="checkbox" id="collapse-section13" aria-hidden="true">
<label for="collapse-section13" aria-hidden="true">V2.5.3 /
30-April-2019</label>
<div>
<h2 id="main-changes-8">Main Changes</h2>
<table>
<thead>
<tr class="header">
<th style="text-align: left;">Headline</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: left;">Fix misra-c 2012 high severity
violations</td>
</tr>
<tr class="even">
<td style="text-align: left;"><strong>Core driver:</strong></td>
</tr>
<tr class="odd">
<td style="text-align: left;">protect shared macros __ALIGN_BEGIN,
__ALIGN_END with C directive #ifndef</td>
</tr>
<tr class="even">
<td style="text-align: left;">update Core driver and DFU Class driver to
use USBD_SUPPORT_USER_STRING_DESC instead of
USBD_SUPPORT_USER_STRING</td>
</tr>
<tr class="odd">
<td style="text-align: left;">prevent accessing to NULL pointer if the
get descriptor functions are not defined</td>
</tr>
<tr class="even">
<td style="text-align: left;">Update on USBD_LL_Resume(), restore the
device state only if the current state is USBD_STATE_SUSPENDED</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="collapse">
<input type="checkbox" id="collapse-section12" aria-hidden="true">
<label for="collapse-section12" aria-hidden="true">V2.5.2 /
27-Mars-2019</label>
<div>
<h2 id="main-changes-9">Main Changes</h2>
<table>
<thead>
<tr class="header">
<th style="text-align: left;">Headline</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: left;">DFU Class: fix compilation warning due to
unreachable instruction code introduced with CMSIS V5.4.0
NVIC_SystemReset() prototype change</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="collapse">
<input type="checkbox" id="collapse-section11" aria-hidden="true">
<label for="collapse-section11" aria-hidden="true">V2.5.1 /
03-August-2018</label>
<div>
<h2 id="main-changes-10">Main Changes</h2>
<table>
<thead>
<tr class="header">
<th style="text-align: left;">Headline</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: left;">Update license section by adding path to
get copy of ST Ultimate Liberty license</td>
</tr>
<tr class="even">
<td style="text-align: left;">Core: Fix unexpected stall during status
OUT phase</td>
</tr>
<tr class="odd">
<td style="text-align: left;">DFU Class: rework hdfu struct to prevent
unaligned addresses</td>
</tr>
<tr class="even">
<td style="text-align: left;">MSC Class: fix lba address overflow during
large file transfers greater than 4Go</td>
</tr>
<tr class="odd">
<td style="text-align: left;">Template Class: add missing Switch case
Break on USBD_Template_Setup API</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="collapse">
<input type="checkbox" id="collapse-section10" aria-hidden="true">
<label for="collapse-section10" aria-hidden="true">V2.5.0 /
15-December-2017</label>
<div>
<h2 id="main-changes-11">Main Changes</h2>
<table>
<thead>
<tr class="header">
<th style="text-align: left;">Headline</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: left;">Update license section</td>
</tr>
<tr class="even">
<td style="text-align: left;">Update some functions to be MISRAC 2004
compliant</td>
</tr>
<tr class="odd">
<td style="text-align: left;">Add HS and OtherSpeed configuration
descriptor for HID and CustomHID classes</td>
</tr>
<tr class="even">
<td style="text-align: left;">Correct error handling in all class setup
function</td>
</tr>
<tr class="odd">
<td style="text-align: left;">Add usbd_desc_template.c/
usbd_desc_template.h templates files</td>
</tr>
<tr class="even">
<td style="text-align: left;">Add support of class and vendor
request</td>
</tr>
<tr class="odd">
<td style="text-align: left;">CDC Class: fix zero-length packet issue in
bulk IN transfer</td>
</tr>
<tr class="even">
<td style="text-align: left;">Fix compilation warning with unused
arguments for some functions</td>
</tr>
<tr class="odd">
<td style="text-align: left;">Improve USB Core enumeration state
machine</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="collapse">
<input type="checkbox" id="collapse-section9" aria-hidden="true">
<label for="collapse-section9" aria-hidden="true">V2.4.2 /
11-December-2015</label>
<div>
<h2 id="main-changes-12">Main Changes</h2>
<table>
<thead>
<tr class="header">
<th style="text-align: left;">Headline</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: left;"><strong>CDC Class</strong></td>
</tr>
<tr class="even">
<td style="text-align: left;">usbd_cdc.c: change #include “USBD_CDC.h”
by #include “usbd_cdc.h”</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="collapse">
<input type="checkbox" id="collapse-section8" aria-hidden="true">
<label for="collapse-section8" aria-hidden="true">V2.4.1 /
19-June-2015</label>
<div>
<h2 id="main-changes-13">Main Changes</h2>
<table>
<thead>
<tr class="header">
<th style="text-align: left;">Headline</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: left;"><strong>CDC Class</strong></td>
</tr>
<tr class="even">
<td style="text-align: left;">usbd_cdc.c: comments update</td>
</tr>
<tr class="odd">
<td style="text-align: left;"><strong>MSC Class</strong></td>
</tr>
<tr class="even">
<td style="text-align: left;">usbd_msc_bot.h: update to be C++
compliant</td>
</tr>
<tr class="odd">
<td style="text-align: left;"><strong>AUDIO Class</strong></td>
</tr>
<tr class="even">
<td style="text-align: left;">usbd_audio.c: fix issue when Host sends
GetInterface command it gets a wrong value</td>
</tr>
<tr class="odd">
<td style="text-align: left;">usbd_audio.c: remove useless management of
DMA half transfer</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="collapse">
<input type="checkbox" id="collapse-section7" aria-hidden="true">
<label for="collapse-section7" aria-hidden="true">V2.4.0 /
28-February-2015</label>
<div>
<h2 id="main-changes-14">Main Changes</h2>
<table>
<thead>
<tr class="header">
<th style="text-align: left;">Headline</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: left;"><strong>Core Driver</strong></td>
</tr>
<tr class="even">
<td style="text-align: left;">Add support of Link Power Management
(LPM): add new API GetBOSDescriptor(), that is used only if
USBD_LPM_ENABLED switch is enabled in usbd_conf.h file</td>
</tr>
<tr class="odd">
<td style="text-align: left;">usbd_core.c: Fix bug of unsupported
premature Host Out stage during data In stage (ie. when endpoint 0
maximum data size is 8 and Host requests GetDeviceDescriptor for the
first time)</td>
</tr>
<tr class="even">
<td style="text-align: left;">usbd_ctlreq.c: Fix bug of unsupported
Endpoint Class requests (ie. Audio SetCurrent request for endpoint
sampling rate setting)</td>
</tr>
<tr class="odd">
<td style="text-align: left;"><strong>HID Class</strong></td>
</tr>
<tr class="even">
<td style="text-align: left;">Updating Polling time API
USBD_HID_GetPollingInterval() to query this period for HS and FS</td>
</tr>
<tr class="odd">
<td style="text-align: left;">usbd_hid.c: Fix USBD_LL_CloseEP() function
call in USBD_HID_DeInit() replacing endpoint size by endpoint
address.</td>
</tr>
<tr class="even">
<td style="text-align: left;"><strong>CDC Class</strong></td>
</tr>
<tr class="odd">
<td style="text-align: left;">usbd_cdc.c: Add missing GetInterface
request management in USBD_CDC_Setup() function</td>
</tr>
<tr class="even">
<td style="text-align: left;">usbd_cdc.c: Update USBD_CDC_Setup()
function to allow correct user implementation of
CDC_SET_CONTROL_LINE_STATE and similar no-data setup requests.</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="collapse">
<input type="checkbox" id="collapse-section6" aria-hidden="true">
<label for="collapse-section6" aria-hidden="true">V2.3.0 /
04-November-2014</label>
<div>
<h2 id="main-changes-15">Main Changes</h2>
<table>
<thead>
<tr class="header">
<th style="text-align: left;">Headline</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: left;">Update all drivers to be C++
compliant</td>
</tr>
<tr class="even">
<td style="text-align: left;"><strong>CDC Class</strong></td>
</tr>
<tr class="odd">
<td style="text-align: left;">usbd_cdc.c: fix clear flag issue in
USBD_CDC_TransmitPacket() function</td>
</tr>
<tr class="even">
<td style="text-align: left;">usbd_cdc_if_template.c: update
TEMPLATE_Receive() function header comment</td>
</tr>
<tr class="odd">
<td style="text-align: left;">Miscellaneous source code comments
update</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="collapse">
<input type="checkbox" id="collapse-section5" aria-hidden="true">
<label for="collapse-section5" aria-hidden="true">V2.2.0 /
13-June-2014</label>
<div>
<h2 id="main-changes-16">Main Changes</h2>
<table>
<thead>
<tr class="header">
<th style="text-align: left;">Headline</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td style="text-align: left;">Source code comments review and
update</td>
</tr>
<tr class="even">
<td style="text-align: left;"><strong>HID class</strong></td>
</tr>
<tr class="odd">
<td style="text-align: left;">Remove unused API
USBD_HID_DeviceQualifierDescriptor()</td>
</tr>
<tr class="even">
<td style="text-align: left;">Add a new API in the HID class to query
the poll time USBD_HID_GetPollingInterval()</td>
</tr>
<tr class="odd">
<td style="text-align: left;"><strong>CDC class</strong></td>
</tr>
<tr class="even">
<td style="text-align: left;">Bug fix: missing handling ZeroLength Setup
request</td>
</tr>
<tr class="odd">
<td style="text-align: left;"><strong>All classes</strong></td>
</tr>
<tr class="even">
<td style="text-align: left;">Add alias for the class definition, it’s
defined as macro with capital letter</td>
</tr>
<tr class="odd">
<td style="text-align: left;">ex. for the HID, the USBD_HID_CLASS macro
is defined this way #define USBD_HID_CLASS &USBD_HID</td>
</tr>
<tr class="even">
<td style="text-align: left;">and the application code can use the
previous definition: &USBD_HID ex.
USBD_RegisterClass(&USBD_Device, &USBD_HID) or the new
USBD_HID_CLASS ex. USBD_RegisterClass(&USBD_Device,
USBD_HID_CLASS)</td>