aboutsummaryrefslogtreecommitdiff
path: root/keyboards/infinity_chibios/mcuconf.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/infinity_chibios/mcuconf.h')
-rw-r--r--keyboards/infinity_chibios/mcuconf.h110
1 files changed, 55 insertions, 55 deletions
diff --git a/keyboards/infinity_chibios/mcuconf.h b/keyboards/infinity_chibios/mcuconf.h
index 66b6ce25d..f453304b7 100644
--- a/keyboards/infinity_chibios/mcuconf.h
+++ b/keyboards/infinity_chibios/mcuconf.h
@@ -1,55 +1,55 @@
1/* 1/*
2 ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio 2 ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio
3 3
4 Licensed under the Apache License, Version 2.0 (the "License"); 4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with 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 6 You may obtain a copy of the License at
7 7
8 http://www.apache.org/licenses/LICENSE-2.0 8 http://www.apache.org/licenses/LICENSE-2.0
9 9
10 Unless required by applicable law or agreed to in writing, software 10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS, 11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and 13 See the License for the specific language governing permissions and
14 limitations under the License. 14 limitations under the License.
15*/ 15*/
16 16
17#ifndef _MCUCONF_H_ 17#ifndef _MCUCONF_H_
18#define _MCUCONF_H_ 18#define _MCUCONF_H_
19 19
20#define K20x_MCUCONF 20#define K20x_MCUCONF
21 21
22/* 22/*
23 * HAL driver system settings. 23 * HAL driver system settings.
24 */ 24 */
25 25
26/* Select the MCU clocking mode below by enabling the appropriate block. */ 26/* Select the MCU clocking mode below by enabling the appropriate block. */
27 27
28#define KINETIS_NO_INIT FALSE 28#define KINETIS_NO_INIT FALSE
29 29
30/* FEI mode - 48 MHz with internal 32.768 kHz crystal */ 30/* FEI mode - 48 MHz with internal 32.768 kHz crystal */
31#define KINETIS_MCG_MODE KINETIS_MCG_MODE_FEI 31#define KINETIS_MCG_MODE KINETIS_MCG_MODE_FEI
32#define KINETIS_MCG_FLL_DMX32 1 /* Fine-tune for 32.768 kHz */ 32#define KINETIS_MCG_FLL_DMX32 1 /* Fine-tune for 32.768 kHz */
33#define KINETIS_MCG_FLL_DRS 1 /* 1464x FLL factor */ 33#define KINETIS_MCG_FLL_DRS 1 /* 1464x FLL factor */
34#define KINETIS_SYSCLK_FREQUENCY 47972352UL /* 32.768 kHz * 1464 (~48 MHz) */ 34#define KINETIS_SYSCLK_FREQUENCY 47972352UL /* 32.768 kHz * 1464 (~48 MHz) */
35#define KINETIS_CLKDIV1_OUTDIV1 1 35#define KINETIS_CLKDIV1_OUTDIV1 1
36#define KINETIS_CLKDIV1_OUTDIV2 1 36#define KINETIS_CLKDIV1_OUTDIV2 1
37#define KINETIS_CLKDIV1_OUTDIV4 2 37#define KINETIS_CLKDIV1_OUTDIV4 2
38#define KINETIS_BUSCLK_FREQUENCY KINETIS_SYSCLK_FREQUENCY 38#define KINETIS_BUSCLK_FREQUENCY KINETIS_SYSCLK_FREQUENCY
39#define KINETIS_FLASHCLK_FREQUENCY KINETIS_SYSCLK_FREQUENCY/2 39#define KINETIS_FLASHCLK_FREQUENCY KINETIS_SYSCLK_FREQUENCY/2
40 40
41/* 41/*
42 * SERIAL driver system settings. 42 * SERIAL driver system settings.
43 */ 43 */
44#define KINETIS_SERIAL_USE_UART0 TRUE 44#define KINETIS_SERIAL_USE_UART0 TRUE
45 45
46/* 46/*
47 * USB driver settings 47 * USB driver settings
48 */ 48 */
49#define KINETIS_USB_USE_USB0 TRUE 49#define KINETIS_USB_USE_USB0 TRUE
50/* Need to redefine this, since the default is for K20x */ 50/* Need to redefine this, since the default is for K20x */
51/* This is for Teensy LC; you should comment it out (or change to 5) 51/* This is for Teensy LC; you should comment it out (or change to 5)
52 * for Teensy 3.x */ 52 * for Teensy 3.x */
53#define KINETIS_USB_USB0_IRQ_PRIORITY 2 53#define KINETIS_USB_USB0_IRQ_PRIORITY 2
54 54
55#endif /* _MCUCONF_H_ */ 55#endif /* _MCUCONF_H_ */