logo

qmk_firmware

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

mcuconf.h (1440B)


  1. /*
  2. ChibiOS - Copyright (C) 2020 Alex Lewontin
  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. /*
  16. * Board setting
  17. * The following settings override the default settings present in
  18. * the various device driver implementation headers.
  19. * Note that the settings for each driver only have effect if the whole
  20. * driver is enabled in halconf.h.
  21. *
  22. * IRQ priorities:
  23. * 3...0 Lowest...Highest.
  24. *
  25. * DMA priorities:
  26. * 5...0 Lowest...Highest.
  27. */
  28. /*
  29. * HAL driver system settings.
  30. */
  31. #define NUC123_HSE_ENABLED TRUE
  32. #define NUC123_PLL_ENABLED TRUE
  33. #define NUC123_PLLSRC NUC123_PLLSRC_HSE
  34. #define NUC123_HCLKSRC NUC123_HCLKSRC_PLL
  35. #define NUC123_HCLKDIV 2
  36. #define NUC123_PLL_NF 144
  37. #define NUC123_USB_USE_USB0 TRUE
  38. #define NUC123_USB_USE_USB1 TRUE
  39. #define NUC123_SERIAL_USE_UART0 TRUE
  40. #define NUC123_SERIAL_CLKSRC NUC123_SERIAL_CLKSRC_HSI
  41. #define NUC123_MCUCONF
  42. #endif /* _MCUCONF_H_ */