diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2022-08-16 21:12:42 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2022-08-16 21:21:45 -0400 |
commit | 6aec6efcc963c523d665adabc99e15a736c2dda1 (patch) | |
tree | 520feb68834243ef6d69b149caafcfcb57e6b817 /src/atsamd/clock.c | |
parent | a709ba43af8edaaa307775ed73cb49fac2b5e550 (diff) | |
download | kutter-6aec6efcc963c523d665adabc99e15a736c2dda1.tar.gz kutter-6aec6efcc963c523d665adabc99e15a736c2dda1.tar.xz kutter-6aec6efcc963c523d665adabc99e15a736c2dda1.zip |
stm32: Use new CONFIG_USB to determine if USB needs to be configured
Introduce a CONFIG_USB build symbol that is set whenever
CONFIG_USBSERIAL or CONFIG_USBCANBUS is set. Use that symbol during
setup so that the USB controller is properly initialized for both usb
serial and usb canbus bridge configurations.
This fixes the clock configuration for usb canbus bridge mode on
stm32f446.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/atsamd/clock.c')
0 files changed, 0 insertions, 0 deletions