diff options
-rw-r--r-- | os/hal/ports/KINETIS/MK66F18/hal_lld.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/os/hal/ports/KINETIS/MK66F18/hal_lld.h b/os/hal/ports/KINETIS/MK66F18/hal_lld.h index 832955e..4faf575 100644 --- a/os/hal/ports/KINETIS/MK66F18/hal_lld.h +++ b/os/hal/ports/KINETIS/MK66F18/hal_lld.h @@ -128,6 +128,9 @@ #if !defined(KINETIS_CLKDIV1_OUTDIV3) || defined(__DOXYGEN__)
#if defined(KINETIS_FLEXBUSCLK_FREQUENCY) && KINETIS_FLEXBUSCLK_FREQUENCY > 0
#define KINETIS_CLKDIV1_OUTDIV3 (KINETIS_PLLCLK_FREQUENCY/KINETIS_FLEXBUSCLK_FREQUENCY)
+ #else
+ /* If no FlexBus frequency provided, use bus speed divider */
+ #define KINETIS_CLKDIV1_OUTDIV3 KINETIS_CLKDIV1_OUTDIV2
#endif
#endif
|