2 ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio
\r
4 Licensed under the Apache License, Version 2.0 (the "License");
\r
5 you may not use this file except in compliance with the License.
\r
6 You may obtain a copy of the License at
\r
8 http://www.apache.org/licenses/LICENSE-2.0
\r
10 Unless required by applicable law or agreed to in writing, software
\r
11 distributed under the License is distributed on an "AS IS" BASIS,
\r
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
13 See the License for the specific language governing permissions and
\r
14 limitations under the License.
\r
20 #define KL2x_MCUCONF
\r
23 * HAL driver system settings.
\r
26 /* PEE mode - 48MHz system clock driven by (16 MHz) external crystal. */
\r
27 #define KINETIS_MCG_MODE KINETIS_MCG_MODE_PEE
\r
28 #define KINETIS_PLLCLK_FREQUENCY 96000000UL
\r
29 #define KINETIS_SYSCLK_FREQUENCY 48000000UL
\r
33 /* crystal-less FEI mode - 48 MHz with internal 32.768 kHz crystal */
\r
34 #define KINETIS_MCG_MODE KINETIS_MCG_MODE_FEI
\r
35 #define KINETIS_MCG_FLL_DMX32 1 /* Fine-tune for 32.768 kHz */
\r
36 #define KINETIS_MCG_FLL_DRS 1 /* 1464x FLL factor */
\r
37 #define KINETIS_SYSCLK_FREQUENCY 47972352UL /* 32.768 kHz * 1464 (~48 MHz) */
\r
38 #define KINETIS_CLKDIV1_OUTDIV1 1 /* do not divide system clock */
\r
42 * SERIAL driver system settings.
\r
44 #define KINETIS_SERIAL_USE_UART0 TRUE
\r
47 * USB driver settings
\r
49 #define KINETIS_USB_USE_USB0 TRUE
\r
50 /* Need to redefine this, since the default is for K20x */
\r
51 /* This is for Teensy LC; you should comment it out (or change to 5)
\r
53 #define KINETIS_USB_USB0_IRQ_PRIORITY 2
\r
55 #endif /* _MCUCONF_H_ */
\r