diff options
Diffstat (limited to 'keyboards/handwired/onekey/teensy_32/mcuconf.h')
-rw-r--r-- | keyboards/handwired/onekey/teensy_32/mcuconf.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/keyboards/handwired/onekey/teensy_32/mcuconf.h b/keyboards/handwired/onekey/teensy_32/mcuconf.h new file mode 100644 index 000000000..13a9e3333 --- /dev/null +++ b/keyboards/handwired/onekey/teensy_32/mcuconf.h | |||
@@ -0,0 +1,45 @@ | |||
1 | /* | ||
2 | ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio | ||
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 K20x_MCUCONF | ||
21 | |||
22 | /* | ||
23 | * HAL driver system settings. | ||
24 | */ | ||
25 | /* PEE mode - 48MHz system clock driven by (16 MHz) external crystal. */ | ||
26 | #define KINETIS_MCG_MODE KINETIS_MCG_MODE_PEE | ||
27 | #define KINETIS_PLLCLK_FREQUENCY 96000000UL | ||
28 | #define KINETIS_SYSCLK_FREQUENCY 48000000UL | ||
29 | |||
30 | /* | ||
31 | * SERIAL driver system settings. | ||
32 | */ | ||
33 | #define KINETIS_SERIAL_USE_UART0 TRUE | ||
34 | |||
35 | /* | ||
36 | * USB driver settings | ||
37 | */ | ||
38 | #define KINETIS_USB_USE_USB0 TRUE | ||
39 | |||
40 | /* Need to redefine this, since the default (configured for K20x) might not apply | ||
41 | * 2 for Teensy LC | ||
42 | * 5 for Teensy 3.x */ | ||
43 | #define KINETIS_USB_USB0_IRQ_PRIORITY 5 | ||
44 | |||
45 | #endif /* _MCUCONF_H_ */ | ||