8000 stm32/qstrdefsport.h: Remove unused qstrs and make USB ones conditional. · rlangoy/micropython@77b8f86 · GitHub
[go: up one dir, main page]

Skip to content

Commit 77b8f86

Browse files
committed
stm32/qstrdefsport.h: Remove unused qstrs and make USB ones conditional.
qstrs in this file are always included in all builds, even if not used anywhere. So remove those that are never needed, and make USB names conditional on having USB enabled.
1 parent 01e5802 commit 77b8f86

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

ports/stm32/qstrdefsport.h

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,18 @@
2626

2727
// qstrs specific to this port
2828

29-
Q(boot.py)
30-
Q(main.py)
3129
// Entries for sys.path
3230
Q(/flash)
3331
Q(/flash/lib)
3432
Q(/sd)
3533
Q(/sd/lib)
34+
35+
// For uos.sep
36+
Q(/)
37+
38+
#if MICROPY_HW_ENABLE_USB
3639
// for usb modes
3740
Q(MSC+HID)
3841
Q(VCP+MSC)
3942
Q(VCP+HID)
40-
Q(CDC+MSC)
41-
Q(CDC+HID)
42-
Q(/)
43-
44-
45-
// The following qstrings not referenced from anywhere in the sources
46-
Q(CDC)
47-
Q(flash)
43+
#endif

0 commit comments

Comments
 (0)
0