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