logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git

mcuconf.h (1543B)


  1. /*
  2. ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. */
  13. #ifndef _MCUCONF_H_
  14. #define _MCUCONF_H_
  15. #define K60x_MCUCONF
  16. /*
  17. * HAL driver system settings.
  18. */
  19. /* Select the MCU clocking mode below by enabling the appropriate block. */
  20. /* PEE mode - 120MHz system clock driven by external crystal. */
  21. #define KINETIS_MCG_MODE KINETIS_MCG_MODE_PEE
  22. #define KINETIS_PLLCLK_FREQUENCY 120000000UL // 120 MHz (RUN)
  23. #define KINETIS_SYSCLK_FREQUENCY KINETIS_PLLCLK_FREQUENCY
  24. #define KINETIS_BUSCLK_FREQUENCY 60000000UL
  25. #define KINETIS_FLASHCLK_FREQUENCY 24000000UL // 24 MHz (RUN)
  26. #define KINETIS_CLKDIV1_OUTDIV1 1 // -> 0
  27. #define KINETIS_CLKDIV1_OUTDIV2 2 // -> 1
  28. #define KINETIS_CLKDIV1_OUTDIV4 5 // -> 4
  29. /*
  30. * SERIAL driver system settings.
  31. */
  32. #define KINETIS_SERIAL_USE_UART0 TRUE
  33. /*
  34. * USB driver settings
  35. */
  36. #define KINETIS_USB_USE_USB0 TRUE
  37. #define KINETIS_USB_USB0_IRQ_PRIORITY 5
  38. #endif /* _MCUCONF_H_ */