]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/k_type/mcuconf.h
[Keyboard] Snagpad Configurator bugfix and readme refactor (#6381)
[qmk_firmware.git] / keyboards / k_type / mcuconf.h
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
26 /* Select the MCU clocking mode below by enabling the appropriate block. */
27
28 #define KINETIS_NO_INIT             FALSE
29
30 /* PEE mode - 48MHz system clock driven by external crystal. */
31 #define KINETIS_MCG_MODE            KINETIS_MCG_MODE_PEE
32 #define KINETIS_PLLCLK_FREQUENCY    72000000UL
33 #define KINETIS_SYSCLK_FREQUENCY    72000000UL
34 #define KINETIS_BUSCLK_FREQUENCY    36000000UL
35 #define KINETIS_FLASHCLK_FREQUENCY  24000000UL
36
37 /*
38  * SERIAL driver system settings.
39  */
40 #define KINETIS_SERIAL_USE_UART0            TRUE
41
42 /*
43  * USB driver settings
44  */
45 #define KINETIS_USB_USE_USB0                TRUE
46 #define KINETIS_USB_USB0_IRQ_PRIORITY       5
47
48 /*
49  * I2C driver settings
50  */
51 #define KINETIS_I2C_USE_I2C0                TRUE
52 #define KINETIS_I2C_I2C0_PRIORITY           4
53
54 #endif /* _MCUCONF_H_ */