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
ztimerandztimer_msecdependencies by default when usingusbdev_fsperipheral 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
ztimerwhen it is possible, to save ROM forriotboot_dfubootloader application.Testing procedure
make BOARD=bluepill-stm32f103c8 -C tests/sys/usbus_cdc_acm_stdiomust compile (andztimershould not appear if you useinfo-build)make BOARD=bluepill-stm32f103c8 -C tests/sys/usbus_cdc_ecmmust compile (andztimershould appear if you useinfo-buildbecauseztimerdependency is pulled by another moduleIssues/PRs references
None.