-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cpu/stm32/periph/usbdev_fs: avoid using ztimer when not needed #20467
cpu/stm32/periph/usbdev_fs: avoid using ztimer when not needed #20467
Conversation
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
I can not compile
But thats also the case on master? 😕 |
That's weird, I just compile |
Sure!
|
I'll try to reproduce this week on a computer at my office w/ Ubuntu on it. |
@Teufelchen1 It seems you're hitting a toolchain issue w/ Ubuntu default one. |
Thanks for checking up! |
Thanks @Teufelchen1 ! |
Contribution description
Avoid pulling
ztimer
andztimer_msec
dependencies by default when usingusbdev_fs
peripheral driver.If another module needs
ztimer
, then we can keep using it but otherwise usebusy_wait()
to perform the small delay needed by the driver.My main idea is to avoid pulling
ztimer
when it is possible, to save ROM forriotboot_dfu
bootloader application.Testing procedure
make BOARD=bluepill-stm32f103c8 -C tests/sys/usbus_cdc_acm_stdio
must compile (andztimer
should not appear if you useinfo-build
)make BOARD=bluepill-stm32f103c8 -C tests/sys/usbus_cdc_ecm
must compile (andztimer
should appear if you useinfo-build
becauseztimer
dependency is pulled by another moduleIssues/PRs references
None.