diff options
Diffstat (limited to 'lib/chibios-contrib/testhal/KINETIS/TEENSY_LC/BOOTLOADER/mcuconf.h')
-rw-r--r-- | lib/chibios-contrib/testhal/KINETIS/TEENSY_LC/BOOTLOADER/mcuconf.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/lib/chibios-contrib/testhal/KINETIS/TEENSY_LC/BOOTLOADER/mcuconf.h b/lib/chibios-contrib/testhal/KINETIS/TEENSY_LC/BOOTLOADER/mcuconf.h new file mode 100644 index 000000000..6e76b5bbc --- /dev/null +++ b/lib/chibios-contrib/testhal/KINETIS/TEENSY_LC/BOOTLOADER/mcuconf.h | |||
@@ -0,0 +1,53 @@ | |||
1 | /* | ||
2 | ChibiOS - (C) 2015-2016 flabbergast <[email protected]> | ||
3 | |||
4 | Licensed under the Apache License, Version 2.0 (the "License"); | ||
5 | you may not use this file except in compliance with the License. | ||
6 | You may obtain a copy of the License at | ||
7 | |||
8 | http://www.apache.org/licenses/LICENSE-2.0 | ||
9 | |||
10 | Unless required by applicable law or agreed to in writing, software | ||
11 | distributed under the License is distributed on an "AS IS" BASIS, | ||
12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
13 | See the License for the specific language governing permissions and | ||
14 | limitations under the License. | ||
15 | */ | ||
16 | |||
17 | #ifndef _MCUCONF_H_ | ||
18 | #define _MCUCONF_H_ | ||
19 | |||
20 | #define KL2x_MCUCONF | ||
21 | |||
22 | /* | ||
23 | * HAL driver system settings. | ||
24 | */ | ||
25 | #if 1 | ||
26 | /* PEE mode - 48MHz system clock driven by (16 MHz) external crystal. */ | ||
27 | #define KINETIS_MCG_MODE KINETIS_MCG_MODE_PEE | ||
28 | #define KINETIS_PLLCLK_FREQUENCY 96000000UL | ||
29 | #define KINETIS_SYSCLK_FREQUENCY 48000000UL | ||
30 | #endif | ||
31 | |||
32 | #if 0 | ||
33 | /* crystal-less FEI mode - 48 MHz with internal 32.768 kHz crystal */ | ||
34 | #define KINETIS_MCG_MODE KINETIS_MCG_MODE_FEI | ||
35 | #define KINETIS_MCG_FLL_DMX32 1 /* Fine-tune for 32.768 kHz */ | ||
36 | #define KINETIS_MCG_FLL_DRS 1 /* 1464x FLL factor */ | ||
37 | #define KINETIS_SYSCLK_FREQUENCY 47972352UL /* 32.768 kHz * 1464 (~48 MHz) */ | ||
38 | #define KINETIS_CLKDIV1_OUTDIV1 1 /* do not divide system clock */ | ||
39 | #endif | ||
40 | |||
41 | /* | ||
42 | * SERIAL driver system settings. | ||
43 | */ | ||
44 | #define KINETIS_SERIAL_USE_UART0 TRUE | ||
45 | |||
46 | /* | ||
47 | * USB driver settings | ||
48 | */ | ||
49 | #define KINETIS_USB_USE_USB0 TRUE | ||
50 | /* need to redefine this, since the default is for K20x */ | ||
51 | #define KINETIS_USB_USB0_IRQ_PRIORITY 2 | ||
52 | |||
53 | #endif /* _MCUCONF_H_ */ | ||