diff options
Diffstat (limited to 'keyboards/kinesis/kint36/mcuconf.h')
| -rw-r--r-- | keyboards/kinesis/kint36/mcuconf.h | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/keyboards/kinesis/kint36/mcuconf.h b/keyboards/kinesis/kint36/mcuconf.h new file mode 100644 index 000000000..b0ea44567 --- /dev/null +++ b/keyboards/kinesis/kint36/mcuconf.h | |||
| @@ -0,0 +1,65 @@ | |||
| 1 | // based on lib/chibios-contrib/demos/KINETIS/RT-TEENSY3_6/mcuconf.h: | ||
| 2 | /* | ||
| 3 | ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio | ||
| 4 | |||
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); | ||
| 6 | you may not use this file except in compliance with the License. | ||
| 7 | You may obtain a copy of the License at | ||
| 8 | |||
| 9 | http://www.apache.org/licenses/LICENSE-2.0 | ||
| 10 | |||
| 11 | Unless required by applicable law or agreed to in writing, software | ||
| 12 | distributed under the License is distributed on an "AS IS" BASIS, | ||
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| 14 | See the License for the specific language governing permissions and | ||
| 15 | limitations under the License. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #ifndef _MCUCONF_H_ | ||
| 19 | #define _MCUCONF_H_ | ||
| 20 | |||
| 21 | #define MK66FX1M0_MCUCONF | ||
| 22 | |||
| 23 | /* | ||
| 24 | * HAL driver system settings. | ||
| 25 | */ | ||
| 26 | |||
| 27 | /* Select the MCU clocking mode below by enabling the appropriate block. */ | ||
| 28 | |||
| 29 | /* PEE mode - 180 MHz system clock driving by 16 MHz xtal */ | ||
| 30 | #define KINETIS_MCG_MODE KINETIS_MCG_MODE_PEE | ||
| 31 | //#define KINETIS_PLLCLK_FREQUENCY 180000000UL // 180 MHz (HSRUN) | ||
| 32 | #define KINETIS_PLLCLK_FREQUENCY 120000000UL // 120 MHz (RUN) | ||
| 33 | #define KINETIS_SYSCLK_FREQUENCY KINETIS_PLLCLK_FREQUENCY | ||
| 34 | #define KINETIS_BUSCLK_FREQUENCY 60000000UL | ||
| 35 | //#define KINETIS_FLASHCLK_FREQUENCY 28000000UL // 28 MHz (HSRUN) | ||
| 36 | #define KINETIS_FLASHCLK_FREQUENCY 24000000UL // 24 MHz (RUN) | ||
| 37 | |||
| 38 | #if KINETIS_PLLCLK_FREQUENCY == 180000000UL | ||
| 39 | # define KINETIS_CLKDIV1_OUTDIV1 1 // -> 0 | ||
| 40 | # define KINETIS_CLKDIV1_OUTDIV2 3 // -> 2 | ||
| 41 | # define KINETIS_CLKDIV1_OUTDIV4 7 // -> 6 | ||
| 42 | #else | ||
| 43 | # define KINETIS_CLKDIV1_OUTDIV1 1 // -> 0 | ||
| 44 | # define KINETIS_CLKDIV1_OUTDIV2 2 // -> 1 | ||
| 45 | # define KINETIS_CLKDIV1_OUTDIV4 5 // -> 4 | ||
| 46 | #endif | ||
| 47 | |||
| 48 | /* | ||
| 49 | * SERIAL driver system settings. | ||
| 50 | */ | ||
| 51 | #define KINETIS_SERIAL_USE_UART4 TRUE | ||
| 52 | |||
| 53 | /* | ||
| 54 | * USB driver settings | ||
| 55 | */ | ||
| 56 | #define KINETIS_USB_USE_USB0 TRUE | ||
| 57 | #define KINETIS_USB_USB0_IRQ_PRIORITY 5 | ||
| 58 | |||
| 59 | /* | ||
| 60 | * I2C driver settings | ||
| 61 | */ | ||
| 62 | #define KINETIS_I2C_USE_I2C0 TRUE | ||
| 63 | #define KINETIS_I2C_I2C0_PRIORITY 4 | ||
| 64 | |||
| 65 | #endif /* _MCUCONF_H_ */ | ||
