diff options
author | Michael Walker <walkerstop@gmail.com> | 2018-05-02 07:53:01 -0700 |
---|---|---|
committer | Michael Walker <walkerstop@gmail.com> | 2018-05-02 07:53:01 -0700 |
commit | 8f7e1d18b943d1e2ba808f9a8e1e79cc78b6044e (patch) | |
tree | e95fb6e5fccda096865dbdf3dd8eb0d3526d78d1 /os | |
parent | 5bec0d7abc33169ef468e194297853a4d7f6ba79 (diff) | |
download | ChibiOS-Contrib-8f7e1d18b943d1e2ba808f9a8e1e79cc78b6044e.tar.gz ChibiOS-Contrib-8f7e1d18b943d1e2ba808f9a8e1e79cc78b6044e.tar.bz2 ChibiOS-Contrib-8f7e1d18b943d1e2ba808f9a8e1e79cc78b6044e.zip |
Always use IRC48M clock for USB on MK66F18
Diffstat (limited to 'os')
-rw-r--r-- | os/hal/ports/KINETIS/LLD/hal_usb_lld.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/os/hal/ports/KINETIS/LLD/hal_usb_lld.c b/os/hal/ports/KINETIS/LLD/hal_usb_lld.c index 694f5e2..a01b92e 100644 --- a/os/hal/ports/KINETIS/LLD/hal_usb_lld.c +++ b/os/hal/ports/KINETIS/LLD/hal_usb_lld.c @@ -407,6 +407,8 @@ void usb_lld_init(void) { #elif KINETIS_MCG_MODE == KINETIS_MCG_MODE_PEE
+#if !defined(MK66F18)
+ /* Note: We don't need this for MK66F18, we can use IRC48M clock for USB */
#define KINETIS_USBCLK_FREQUENCY 48000000UL
uint32_t i,j;
for(i=0; i < 2; i++) {
@@ -419,6 +421,7 @@ void usb_lld_init(void) { }
usbfrac_match_found:
osalDbgAssert(i<2 && j <8,"USB Init error");
+#endif
#else /* KINETIS_MCG_MODE == KINETIS_MCG_MODE_PEE */
#error USB clock setting not implemented for this KINETIS_MCG_MODE
|