diff options
author | Damien George <damien.p.george@gmail.com> | 2019-11-27 21:48:00 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-11-27 21:59:47 +1100 |
commit | 77b8f86a5eae397c42c4c68fd9f86bbfa0311c82 (patch) | |
tree | 12c642e86ad1b9270546c8f2cdfebfe3ebd07f87 | |
parent | 01e5802ee39d8c5c18b2f24291776b6e9128d077 (diff) | |
download | micropython-77b8f86a5eae397c42c4c68fd9f86bbfa0311c82.tar.gz micropython-77b8f86a5eae397c42c4c68fd9f86bbfa0311c82.zip |
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.
-rw-r--r-- | ports/stm32/qstrdefsport.h | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/ports/stm32/qstrdefsport.h b/ports/stm32/qstrdefsport.h index 31220c5a42..857dc709c9 100644 --- a/ports/stm32/qstrdefsport.h +++ b/ports/stm32/qstrdefsport.h @@ -26,22 +26,18 @@ // qstrs specific to this port -Q(boot.py) -Q(main.py) // Entries for sys.path Q(/flash) Q(/flash/lib) Q(/sd) Q(/sd/lib) + +// For uos.sep +Q(/) + +#if MICROPY_HW_ENABLE_USB // for usb modes Q(MSC+HID) Q(VCP+MSC) Q(VCP+HID) -Q(CDC+MSC) -Q(CDC+HID) -Q(/) - - -// The following qstrings not referenced from anywhere in the sources -Q(CDC) -Q(flash) +#endif |